Commit 1236cc3c authored by Serge E. Hallyn's avatar Serge E. Hallyn Committed by Linus Torvalds

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: default avatarSerge E. Hallyn <serue@us.ibm.com>
Acked-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 30aa4faf
...@@ -2495,6 +2495,7 @@ struct security_operations smack_ops = { ...@@ -2495,6 +2495,7 @@ struct security_operations smack_ops = {
.task_wait = smack_task_wait, .task_wait = smack_task_wait,
.task_reparent_to_init = cap_task_reparent_to_init, .task_reparent_to_init = cap_task_reparent_to_init,
.task_to_inode = smack_task_to_inode, .task_to_inode = smack_task_to_inode,
.task_prctl = cap_task_prctl,
.ipc_permission = smack_ipc_permission, .ipc_permission = smack_ipc_permission,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment