From: James Morris Date: Thu, 29 Jan 2009 01:23:36 +0000 (+1100) Subject: selinux: remove secondary ops call to task_create X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af294e41d0c95a291cc821a1b43ec2cd13976a8b;p=linux-beck.git selinux: remove secondary ops call to task_create Remove secondary ops call to task_create, which is a noop in capabilities. Acked-by: Serge Hallyn Acked-by: Eric Paris Signed-off-by: James Morris --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 2c98071fba8b..72c1e5cd26d4 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -3212,12 +3212,6 @@ static int selinux_dentry_open(struct file *file, const struct cred *cred) static int selinux_task_create(unsigned long clone_flags) { - int rc; - - rc = secondary_ops->task_create(clone_flags); - if (rc) - return rc; - return current_has_perm(current, PROCESS__FORK); }