Skip to content

Commit

Permalink
root_plug: use cap_task_prctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Serge E. Hallyn authored and Linus Torvalds committed Apr 28, 2008
1 parent c60264c commit 55d00cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/root_plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ static struct security_operations rootplug_security_ops = {

.task_post_setuid = cap_task_post_setuid,
.task_reparent_to_init = cap_task_reparent_to_init,
.task_prctl = cap_task_prctl,

.bprm_check_security = rootplug_bprm_check_security,
};
Expand Down

0 comments on commit 55d00cc

Please sign in to comment.