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)
commit398ce073700a2a3e86b5a0b1edecdddfa3996b27
tree81ebb8780ddfdd38590e1f5ba578a0aa087181b1
parent217091dd7a7a1bdac027ddb7c5a25f6ac0b8e241
smack: fix: allow either entry be missing on access/access2 check (v2)

This is a regression caused by f7112e6c. 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