diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2017-01-23 17:17:26 +1300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2017-01-24 12:03:08 +1300 |
commit | 20523132ec5d1b481e1d66557292ed3a3021e817 (patch) | |
tree | 9f34d81fd0c96881c8d66413184b5f736e6f626c /security/smack/smack_lsm.c | |
parent | 70169420f555210147f3cab74bb0f6debd488bdb (diff) | |
download | blackbird-op-linux-20523132ec5d1b481e1d66557292ed3a3021e817.tar.gz blackbird-op-linux-20523132ec5d1b481e1d66557292ed3a3021e817.zip |
exec: Test the ptracer's saved cred to see if the tracee can gain caps
Now that we have user namespaces and non-global capabilities verify
the tracer has capabilities in the relevant user namespace instead
of in the current_user_ns().
As the test for setting LSM_UNSAFE_PTRACE_CAP is currently
ptracer_capable(p, current_user_ns()) and the new task credentials are
in current_user_ns() this change does not have any user visible change
and simply moves the test to where it is used, making the code easier
to read.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'security/smack/smack_lsm.c')
0 files changed, 0 insertions, 0 deletions