capabilities: use root_priveleged inline to clarify logic
authorRichard Guy Briggs <[email protected]>
Thu, 12 Oct 2017 00:57:08 +0000 (20:57 -0400)
committerJames Morris <[email protected]>
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 <[email protected]>
Signed-off-by: Richard Guy Briggs <[email protected]>
Reviewed-by: Serge Hallyn <[email protected]>
Acked-by: James Morris <[email protected]>
Acked-by: Kees Cook <[email protected]>
Okay-ished-by: Paul Moore <[email protected]>
Signed-off-by: James Morris <[email protected]>
security/commoncap.c