BACKPORT: 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)
committerRafal Krypa <r.krypa@samsung.com>
Thu, 30 Jun 2016 12:57:29 +0000 (14:57 +0200)
commitcc3b0fe9357a5e237af4772d424a14d4672e0352
tree8b7772ad8a7712b1ffd1cd9cceb54e1bbcb6203a
parent83da89afe6f9271c4e2629f5d3053c0b12e8876d
BACKPORT: 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>
(cherry-picked from upstream 398ce073700a2a3e86b5a0b1edecdddfa3996b27)
security/smack/smackfs.c