diff options
author | James Morris <jmorris@namei.org> | 2009-01-28 20:23:36 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-01-29 16:55:11 -0500 |
commit | af294e41d0c95a291cc821a1b43ec2cd13976a8b (patch) | |
tree | 051fcc87fd27422af41809fb25e821c7b3b4a628 | |
parent | d541bbee6902d5ffb8a03d63ac8f4b1364c2ff93 (diff) |
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>
-rw-r--r-- | security/selinux/hooks.c | 6 |
1 files changed, 0 insertions, 6 deletions
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) | |||
3212 | 3212 | ||
3213 | static int selinux_task_create(unsigned long clone_flags) | 3213 | static int selinux_task_create(unsigned long clone_flags) |
3214 | { | 3214 | { |
3215 | int rc; | ||
3216 | |||
3217 | rc = secondary_ops->task_create(clone_flags); | ||
3218 | if (rc) | ||
3219 | return rc; | ||
3220 | |||
3221 | return current_has_perm(current, PROCESS__FORK); | 3215 | return current_has_perm(current, PROCESS__FORK); |
3222 | } | 3216 | } |
3223 | 3217 | ||