Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 19:03:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_init

Proto:static __init int selinux_init(void)

Type:int

Parameter:Nothing

7128  pr_info("SELinux: Initializing.\n")
7130  memset( & selinux_state, 0, size of 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 = Not (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  If 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 memory Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
7154  If 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 memory Then panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
7157  If selinux_enforcing_boot Then pr_debug("SELinux: Starting in enforcing mode\n")
7159  Else pr_debug("SELinux: Starting in permissive mode\n")
7162  fs_validate_description( & selinux_fs_parameters)
7164  Return 0