diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2017-01-22 23:26:31 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2017-01-23 18:03:08 -0500 |
commit | 9227dd2a84a765fcfef1677ff17de0958b192eda (patch) | |
tree | 8dc953fa3145922b6db30c8ebf9f34ff018bde5b /security/selinux/hooks.c | |
parent | 20523132ec5d1b481e1d66557292ed3a3021e817 (diff) |
exec: Remove LSM_UNSAFE_PTRACE_CAP
With previous changes every location that tests for
LSM_UNSAFE_PTRACE_CAP also tests for LSM_UNSAFE_PTRACE making the
LSM_UNSAFE_PTRACE_CAP redundant, so remove it.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
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 c7c6619431d5..cece6fe55f02 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2404,8 +2404,7 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm) | |||
2404 | 2404 | ||
2405 | /* Make sure that anyone attempting to ptrace over a task that | 2405 | /* Make sure that anyone attempting to ptrace over a task that |
2406 | * changes its SID has the appropriate permit */ | 2406 | * changes its SID has the appropriate permit */ |
2407 | if (bprm->unsafe & | 2407 | if (bprm->unsafe & LSM_UNSAFE_PTRACE) { |
2408 | (LSM_UNSAFE_PTRACE | LSM_UNSAFE_PTRACE_CAP)) { | ||
2409 | u32 ptsid = ptrace_parent_sid(current); | 2408 | u32 ptsid = ptrace_parent_sid(current); |
2410 | if (ptsid != 0) { | 2409 | if (ptsid != 0) { |
2411 | rc = avc_has_perm(ptsid, new_tsec->sid, | 2410 | rc = avc_has_perm(ptsid, new_tsec->sid, |