From: Serge E. Hallyn Date: Mon, 28 Apr 2008 09:13:43 +0000 (-0700) Subject: smack: use cap_task_prctl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1236cc3cf8c69bd316c940b2e94f91b3795f97fe;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git smack: use cap_task_prctl With the introduction of per-process securebits, the capabilities-related prctl callbacks were moved into cap_task_prctl(). Have smack use cap_task_prctl() so that PR_SET_KEEPCAPS is defined. Signed-off-by: Serge E. Hallyn Acked-by: Casey Schaufler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 430f97b9d04a..77ec16a3b68b 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -2495,6 +2495,7 @@ struct security_operations smack_ops = { .task_wait = smack_task_wait, .task_reparent_to_init = cap_task_reparent_to_init, .task_to_inode = smack_task_to_inode, + .task_prctl = cap_task_prctl, .ipc_permission = smack_ipc_permission,