capabilities: move audit log decision to function
authorRichard Guy Briggs <[email protected]>
Thu, 12 Oct 2017 00:57:10 +0000 (20:57 -0400)
committerJames Morris <[email protected]>
Fri, 20 Oct 2017 04:22:44 +0000 (15:22 +1100)
commit9fbc2c79644a88a1cc40a2628ccff1bbbbc9ecc5
tree7246b673c065514c3f3b70cc2457fa7a19ded4cd
parent81a6a012996b3fd47608d87b16e79412dd73578e
capabilities: move audit log decision to function

Move the audit log decision logic to its own function to isolate the
complexity in one place.

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