aboutsummaryrefslogtreecommitdiffstats
path: root/security/commoncap.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/commoncap.c')
-rw-r--r--security/commoncap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index 1f74dde1063e..1832cf701c3d 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -993,7 +993,8 @@ int cap_task_prctl(int option, unsigned long arg2, unsigned long arg3,
993 if (arg2 == PR_CAP_AMBIENT_RAISE && 993 if (arg2 == PR_CAP_AMBIENT_RAISE &&
994 (!cap_raised(current_cred()->cap_permitted, arg3) || 994 (!cap_raised(current_cred()->cap_permitted, arg3) ||
995 !cap_raised(current_cred()->cap_inheritable, 995 !cap_raised(current_cred()->cap_inheritable,
996 arg3))) 996 arg3) ||
997 issecure(SECURE_NO_CAP_AMBIENT_RAISE)))
997 return -EPERM; 998 return -EPERM;
998 999
999 new = prepare_creds(); 1000 new = prepare_creds();