aboutsummaryrefslogtreecommitdiffstats
path: root/security/root_plug.c
diff options
context:
space:
mode:
authorSerge E. Hallyn <serue@us.ibm.com>2008-04-28 05:13:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:27 -0400
commit55d00ccfb336b4f85a476a24e18c17b2eaff919e (patch)
tree5be259b88f5cfe17206ad20dcb11929dd4a40781 /security/root_plug.c
parentc60264c494a119cd3a716a22edc0137b11de6d1e (diff)
root_plug: use cap_task_prctl
With the introduction of per-process securebits, the capabilities-related prctl callbacks were moved into cap_task_prctl(). Have root_plug use cap_task_prctl() so that PR_SET_KEEPCAPS is defined. Signed-off-by: Serge E. Hallyn <serue@us.ibm.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/root_plug.c')
-rw-r--r--security/root_plug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/root_plug.c b/security/root_plug.c
index 6112d1404c81..a41cf42a4fa0 100644
--- a/security/root_plug.c
+++ b/security/root_plug.c
@@ -86,6 +86,7 @@ static struct security_operations rootplug_security_ops = {
86 86
87 .task_post_setuid = cap_task_post_setuid, 87 .task_post_setuid = cap_task_post_setuid,
88 .task_reparent_to_init = cap_task_reparent_to_init, 88 .task_reparent_to_init = cap_task_reparent_to_init,
89 .task_prctl = cap_task_prctl,
89 90
90 .bprm_check_security = rootplug_bprm_check_security, 91 .bprm_check_security = rootplug_bprm_check_security,
91}; 92};