diff options
author | James Morris <jmorris@namei.org> | 2010-03-01 09:36:31 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-03-01 09:36:31 +1100 |
commit | b4ccebdd37ff70d349321a198f416ba737a5e833 (patch) | |
tree | 275d717070346722c3aacd8355fb4f743216e03b /security/selinux/ss/mls_types.h | |
parent | Merge branch 'x86-uv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip (diff) | |
parent | SELinux: Make selinux_kernel_create_files_as() shouldn't just always return 0 (diff) | |
download | linux-dev-b4ccebdd37ff70d349321a198f416ba737a5e833.tar.xz linux-dev-b4ccebdd37ff70d349321a198f416ba737a5e833.zip |
Merge branch 'next' into for-linus
Diffstat (limited to 'security/selinux/ss/mls_types.h')
-rw-r--r-- | security/selinux/ss/mls_types.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/security/selinux/ss/mls_types.h b/security/selinux/ss/mls_types.h index b6e943a21061..03bed52a8052 100644 --- a/security/selinux/ss/mls_types.h +++ b/security/selinux/ss/mls_types.h @@ -15,6 +15,7 @@ #define _SS_MLS_TYPES_H_ #include "security.h" +#include "ebitmap.h" struct mls_level { u32 sens; /* sensitivity */ @@ -27,18 +28,12 @@ struct mls_range { static inline int mls_level_eq(struct mls_level *l1, struct mls_level *l2) { - if (!selinux_mls_enabled) - return 1; - return ((l1->sens == l2->sens) && ebitmap_cmp(&l1->cat, &l2->cat)); } static inline int mls_level_dom(struct mls_level *l1, struct mls_level *l2) { - if (!selinux_mls_enabled) - return 1; - return ((l1->sens >= l2->sens) && ebitmap_contains(&l1->cat, &l2->cat)); } |