mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 21:53:44 +00:00
selinux: update comment on selinux_hooks[]
After commit f22f9aaf6c
("selinux: remove the runtime disable
functionality"), the comment on selinux_hooks[] is out-of-date,
remove the last paragraph about runtime disable functionality.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
c50e125d05
commit
64f18f8a8c
@ -6963,10 +6963,6 @@ static int selinux_uring_cmd(struct io_uring_cmd *ioucmd)
|
||||
* hooks ("allocating" hooks).
|
||||
*
|
||||
* Please follow block comment delimiters in the list to keep this order.
|
||||
*
|
||||
* This ordering is needed for SELinux runtime disable to work at least somewhat
|
||||
* safely. Breaking the ordering rules above might lead to NULL pointer derefs
|
||||
* when disabling SELinux at runtime.
|
||||
*/
|
||||
static struct security_hook_list selinux_hooks[] __ro_after_init = {
|
||||
LSM_HOOK_INIT(binder_set_context_mgr, selinux_binder_set_context_mgr),
|
||||
|
Loading…
Reference in New Issue
Block a user