aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index e67a526d1f30..735609b19e76 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3710,7 +3710,8 @@ static int selinux_file_open(struct file *file, const struct cred *cred)
3710 3710
3711/* task security operations */ 3711/* task security operations */
3712 3712
3713static int selinux_task_create(unsigned long clone_flags) 3713static int selinux_task_alloc(struct task_struct *task,
3714 unsigned long clone_flags)
3714{ 3715{
3715 u32 sid = current_sid(); 3716 u32 sid = current_sid();
3716 3717
@@ -6213,7 +6214,7 @@ static struct security_hook_list selinux_hooks[] __lsm_ro_after_init = {
6213 6214
6214 LSM_HOOK_INIT(file_open, selinux_file_open), 6215 LSM_HOOK_INIT(file_open, selinux_file_open),
6215 6216
6216 LSM_HOOK_INIT(task_create, selinux_task_create), 6217 LSM_HOOK_INIT(task_alloc, selinux_task_alloc),
6217 LSM_HOOK_INIT(cred_alloc_blank, selinux_cred_alloc_blank), 6218 LSM_HOOK_INIT(cred_alloc_blank, selinux_cred_alloc_blank),
6218 LSM_HOOK_INIT(cred_free, selinux_cred_free), 6219 LSM_HOOK_INIT(cred_free, selinux_cred_free),
6219 LSM_HOOK_INIT(cred_prepare, selinux_cred_prepare), 6220 LSM_HOOK_INIT(cred_prepare, selinux_cred_prepare),