projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d541bbe
)
selinux: remove secondary ops call to task_create
author
James Morris
<jmorris@namei.org>
Thu, 29 Jan 2009 01:23:36 +0000
(12:23 +1100)
committer
James Morris
<jmorris@namei.org>
Thu, 29 Jan 2009 21:55:11 +0000
(08:55 +1100)
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>
security/selinux/hooks.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index 2c98071fba8bba6f559a3e5a0477d85f3eb2594b..72c1e5cd26d401a6ed93820c48075e6a989b0d14 100644
(file)
--- 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);
}