diff options
author | Paul Moore <paul@paul-moore.com> | 2021-09-23 16:50:11 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-09-23 19:30:59 +0300 |
commit | a3727a8bac0a9e77c70820655fd8715523ba3db7 (patch) | |
tree | 0bd4ae04db68606c0f991a68fa8c3cb9c683e336 /tools/perf/check-headers.sh | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) | |
download | linux-a3727a8bac0a9e77c70820655fd8715523ba3db7.tar.xz |
selinux,smack: fix subjective/objective credential use mixups
Jann Horn reported a problem with commit eb1231f73c4d ("selinux:
clarify task subjective and objective credentials") where some LSM
hooks were attempting to access the subjective credentials of a task
other than the current task. Generally speaking, it is not safe to
access another task's subjective credentials and doing so can cause
a number of problems.
Further, while looking into the problem, I realized that Smack was
suffering from a similar problem brought about by a similar commit
1fb057dcde11 ("smack: differentiate between subjective and objective
task credentials").
This patch addresses this problem by restoring the use of the task's
objective credentials in those cases where the task is other than the
current executing task. Not only does this resolve the problem
reported by Jann, it is arguably the correct thing to do in these
cases.
Cc: stable@vger.kernel.org
Fixes: eb1231f73c4d ("selinux: clarify task subjective and objective credentials")
Fixes: 1fb057dcde11 ("smack: differentiate between subjective and objective task credentials")
Reported-by: Jann Horn <jannh@google.com>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/check-headers.sh')
0 files changed, 0 insertions, 0 deletions