Smack: Ptrace access check mode 64/14364/1
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 22 Oct 2013 18:47:45 +0000 (11:47 -0700)
committerYin Kangkai <kangkai.yin@intel.com>
Fri, 3 Jan 2014 16:05:19 +0000 (00:05 +0800)
commit4a464a44e48df5f217020672b916680c63c660b8
treefbe39a37c4e749918072ea2d14e348dc6affb9db
parent910a8368d1ebee1750e46b49f0b4ee0dc1c0ade8
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

Change-Id: I979f36da1b26d0fba5d73744f340422aaae5cc74
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Ɓukasz Stelmach <l.stelmach@samsung.com>
(cherry picked from commit dfb6577817caddd151dda1c4a3be2d2b314fba57)
Signed-off-by: Yin Kangkai <kangkai.yin@intel.com>
security/smack/smack_lsm.c