]> git.baikalelectronics.ru Git - kernel.git/commit
Smack: Use cap_capable in privilege check
authorCasey Schaufler <casey@schaufler-ca.com>
Wed, 31 May 2017 20:23:41 +0000 (13:23 -0700)
committerCasey Schaufler <casey@schaufler-ca.com>
Thu, 1 Jun 2017 16:27:21 +0000 (09:27 -0700)
commit14e3b9c6c62d9ce0536bfd57c608c5d611d1b6a5
tree7d81e1fc889d8ba239cbac25d79c8d59e5f68795
parent219866be81ea6d71a930ea91245afea009e3b3c1
Smack: Use cap_capable in privilege check

Use cap_capable() rather than capable() in the Smack privilege
check as the former does not invoke other security module
privilege check, while the later does. This becomes important
when stacking. It may be a problem even with minor modules.

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