diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index e6b1b7410321..9a8f12f8d5b7 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2399,8 +2399,7 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm) | |||
2399 | 2399 | ||
2400 | /* Make sure that anyone attempting to ptrace over a task that | 2400 | /* Make sure that anyone attempting to ptrace over a task that |
2401 | * changes its SID has the appropriate permit */ | 2401 | * changes its SID has the appropriate permit */ |
2402 | if (bprm->unsafe & | 2402 | if (bprm->unsafe & LSM_UNSAFE_PTRACE) { |
2403 | (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) { | ||
2404 | u32 ptsid = ptrace_parent_sid(); | 2403 | u32 ptsid = ptrace_parent_sid(); |
2405 | if (ptsid != 0) { | 2404 | if (ptsid != 0) { |
2406 | rc = avc_has_perm(ptsid, new_tsec->sid, | 2405 | rc = avc_has_perm(ptsid, new_tsec->sid, |