aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-29 12:23:36 +1100
committerJames Morris <jmorris@namei.org>2009-01-30 08:55:11 +1100
commitaf294e41d0c95a291cc821a1b43ec2cd13976a8b (patch)
tree051fcc87fd27422af41809fb25e821c7b3b4a628 /security/selinux/hooks.c
parentd541bbee6902d5ffb8a03d63ac8f4b1364c2ff93 (diff)
downloadkernel_samsung_espresso10-af294e41d0c95a291cc821a1b43ec2cd13976a8b.zip
kernel_samsung_espresso10-af294e41d0c95a291cc821a1b43ec2cd13976a8b.tar.gz
kernel_samsung_espresso10-af294e41d0c95a291cc821a1b43ec2cd13976a8b.tar.bz2
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 <serue@us.ibm.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 2c98071..72c1e5c 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);
}