capabilities: move audit log decision to function
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 12 Oct 2017 00:57:10 +0000 (20:57 -0400)
committerJames Morris <james.l.morris@oracle.com>
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 <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