smack: fix: allow either entry be missing on access/access2 check (v2) 31/19431/1
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 28 Jan 2014 19:31:46 +0000 (11:31 -0800)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Fri, 11 Apr 2014 14:10:49 +0000 (18:10 +0400)
commit21598b56c805b87448ecd394beb7012b45da9b59
treea3e5b2c1a4a06eac12d38f9882a4ec4dcee712cb
parent0b7492adc916b9be8a3f116a9498d9093dde83de
smack: fix: allow either entry be missing on access/access2 check (v2)

commit 398ce073700a2a3e86b5a0b1edecdddfa3996b27
Author: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Date:   Thu Nov 28 19:16:46 2013 +0200

    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>
Change-Id: Ibb84d8ab1e70d5f6689705ed28b0946b9ddde21d
Signed-off-by: Casey Schaufler <casey.schaufler@intel.com>
security/smack/smackfs.c