]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: correct final mmap check comparison
authorCasey Schaufler <casey@schaufler-ca.com>
Thu, 10 Feb 2011 03:58:42 +0000 (19:58 -0800)
committerCasey Schaufler <casey@schaufler-ca.com>
Thu, 10 Feb 2011 03:58:42 +0000 (19:58 -0800)
commit1a0b7139b3b65de0dcd6783e6fbe7ca80c958634
tree038d52827d9a285fed1bb384f06d7adabf4ef674
parent7a51eb01f25432e6bf9bc02591620a7a47a006b7
Smack: correct final mmap check comparison

The mmap policy enforcement checks the access of the
SMACK64MMAP subject against the current subject incorrectly.
The check as written works correctly only if the access
rules involved have the same access. This is the common
case, so initial testing did not find a problem.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c