函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:security\security.c Create Date:2022-07-27 20:12:17
首页 Copyright©Brick

348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
/**
 * security_init - initializes the security framework
 *
 * This should be called early in the kernel initialization sequence.
 */
int __init security_init(void)
{
    struct lsm_info *lsm;
 
    pr_info("Security Framework initializing\n");
 
    /*
     * Append the names of the early LSM modules now that kmalloc() is
     * available
     */
    for (lsm = __start_early_lsm_info; lsm < __end_early_lsm_info; lsm++) {
        if (lsm->enabled)
            lsm_append(lsm->name, &lsm_names);
    }
 
    /* Load LSMs in specified order. */
    ordered_lsm_init();
 
    return 0;
}