OSDN Git Service

capabilities: intuitive names for cap gain status
authorRichard Guy Briggs <rgb@redhat.com>
Thu, 12 Oct 2017 00:57:06 +0000 (20:57 -0400)
committerJames Morris <james.l.morris@oracle.com>
Fri, 20 Oct 2017 04:22:43 +0000 (15:22 +1100)
commit4c7e715fc87b6f8b652363b3515b48b3822c5b5f
treedd6a8ec6b79721e30d0f867ccd207b9836a6de9b
parentdb1a8922cf3f0b936595ba41774fe4b66adf091a
capabilities: intuitive names for cap gain status

Introduce macros cap_gained, cap_grew, cap_full to make the use of the
negation of is_subset() easier to read and analyse.

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