函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:34:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:selinux_init

函数原型:static __init int selinux_init(void)

返回类型:int

参数:

7128  打印信息("SELinux: Initializing.\n")
7130  memset( & selinux_state, 0, selinux_state的长度)
7131  enforcing_set( & selinux_state, selinux_enforcing_boot)
7132  checkreqprot等于selinux_checkreqprot_boot
7133  selinux_ss_init( & ss)
7134  selinux_avc_init( & avc)
7137  alise the security for the init task
7139  default_noexec等于非VM_DATA_DEFAULT_FLAGS按位与VM_EXEC的值
7141  avc_init - Initialize the AVC.* Initialize the access vector cache.
7143  avtab_cache_init()
7145  ebitmap_cache_init()
7147  hashtab_cache_init()
7149  security_add_hooks - Add a modules hooks to the hook lists.*@hooks: the hooks to add*@count: the number of hooks to add*@lsm: the name of the security module* Each LSM has to register its hooks with the infrastructure.
7151  如果avc_add_callback - Register a callback for security events.*@callback: callback function*@events: security events* Register a callback function for events in the set @events.* Returns %0 on success or -%ENOMEM if insufficient memorypanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
7154  如果avc_add_callback - Register a callback for security events.*@callback: callback function*@events: security events* Register a callback function for events in the set @events.* Returns %0 on success or -%ENOMEM if insufficient memorypanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
7157  如果selinux_enforcing_bootpr_debug("SELinux: Starting in enforcing mode\n")
7159  否则pr_debug("SELinux: Starting in permissive mode\n")
7162  fs_validate_description( & selinux_fs_parameters)
7164  返回:0