]> git.baikalelectronics.ru Git - kernel.git/commit
smack: fix: allow either entry be missing on access/access2 check (v2)
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 28 Nov 2013 17:16:46 +0000 (19:16 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Wed, 11 Dec 2013 18:48:55 +0000 (10:48 -0800)
commit74551baf21aee2a2d935db221fc5c5b67379ddef
tree81ebb8780ddfdd38590e1f5ba578a0aa087181b1
parente5711947646d05bccbbfb6f052fa33e0002a2778
smack: fix: allow either entry be missing on access/access2 check (v2)

This is a regression caused by 7706bbb6. When either subject or
object is not found the answer for access should be no. This
patch fixes the situation. '0' is written back instead of failing
with -EINVAL.

v2: cosmetic style fixes

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
security/smack/smackfs.c