security: Fix mode test in selinux_ptrace_access_check()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 19 Dec 2017 23:35:38 +0000 (23:35 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 1 Jan 2018 20:51:04 +0000 (20:51 +0000)
commit9015cf5eb1447b3d06d8fcd240ba5475ce0e3773
tree5978f0001b3a69eb3ac1929a512c28374b54d0d2
parent13b86808f7fabea496c02131f49fec46a84fb3c9
security: Fix mode test in selinux_ptrace_access_check()

Commit 1c8d42255f4c "ptrace: use fsuid, fsgid, effective creds for fs access
checks" added flags to the ptrace mode which need to be ignored here.

This change was made upstream in 3.3 as part of commit 69f594a38967
"ptrace: do not audit capability check when outputing /proc/pid/stat", but
that's probably not suitable for stable due to its dependencies.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
security/selinux/hooks.c