BACKPORT: Smack: Ptrace access check mode
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 22 Oct 2013 18:47:45 +0000 (11:47 -0700)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:28 +0000 (14:57 +0200)
commit83da89afe6f9271c4e2629f5d3053c0b12e8876d
treefa4cef836dec98665d34c87a2b2c558cfd51f3aa
parentf8a41ac9f16a0112612bc56f8d2f546049ee23e1
BACKPORT: Smack: Ptrace access check mode

When the ptrace security hooks were split the addition of
a mode parameter was not taken advantage of in the Smack
ptrace access check. This changes the access check from
always looking for read and write access to using the
passed mode. This will make use of /proc much happier.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
(cherry-picked from upstream b5dfd8075bc26636d11c3d8888940198afbf5112)
security/smack/smack_lsm.c