Home
last modified time | relevance | path

Searched refs:c1 (Results 1 – 4 of 4) sorted by relevance

/security/selinux/ss/
Dcontext.h98 static inline int mls_context_cmp(struct context *c1, struct context *c2) in mls_context_cmp() argument
100 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
101 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
102 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
103 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
151 static inline int context_cmp(struct context *c1, struct context *c2) in context_cmp() argument
153 if (c1->len && c2->len) in context_cmp()
154 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
155 if (c1->len || c2->len) in context_cmp()
157 return ((c1->user == c2->user) && in context_cmp()
[all …]
Davtab.c34 static const u32 c1 = 0xcc9e2d51; in avtab_hash() local
45 v *= c1; \ in avtab_hash()
/security/selinux/
Dselinuxfs.c849 int c1, c2; in sel_write_create() local
853 c1 = *r++; in sel_write_create()
854 if (c1 == '+') in sel_write_create()
855 c1 = ' '; in sel_write_create()
856 else if (c1 == '%') { in sel_write_create()
857 c1 = hex_to_bin(*r++); in sel_write_create()
858 if (c1 < 0) in sel_write_create()
863 c1 = (c1 << 4) | c2; in sel_write_create()
865 *w++ = c1; in sel_write_create()
866 } while (c1 != '\0'); in sel_write_create()
/security/tomoyo/
Dutil.c355 static inline u8 tomoyo_make_byte(const u8 c1, const u8 c2, const u8 c3) in tomoyo_make_byte() argument
357 return ((c1 - '0') << 6) + ((c2 - '0') << 3) + (c3 - '0'); in tomoyo_make_byte()