capabilities: use root_priveleged inline to clarify logic
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 12 Oct 2017 00:57:08 +0000 (20:57 -0400)
committerJames Morris <james.l.morris@oracle.com>
Fri, 20 Oct 2017 04:22:44 +0000 (15:22 +1100)
commit9304b46c912d65a103a68f093b456ba3c02dca3b
tree7ff1e1cf15cee3bf54b31956977c4133fb3ca751
parentfc7eadf768a3e2c062e52eea89b52a0076d53b0c
capabilities: use root_priveleged inline to clarify logic

Introduce inline root_privileged() to make use of SECURE_NONROOT
easier to read.

Suggested-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Acked-by: Kees Cook <keescook@chromium.org>
Okay-ished-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/commoncap.c