Home
last modified time | relevance | path

Searched refs:l (Results 1 – 17 of 17) sorted by relevance

/security/selinux/ss/
Dmls.c38 int i, l, len, head, prev; in mls_compute_context_len() local
47 for (l = 0; l < 2; l++) { in mls_compute_context_len()
48 int index_sens = context->range.level[l].sens; in mls_compute_context_len()
54 e = &context->range.level[l].cat; in mls_compute_context_len()
72 if (l == 0) { in mls_compute_context_len()
94 int i, l, head, prev; in mls_sid_to_context() local
106 for (l = 0; l < 2; l++) { in mls_sid_to_context()
108 context->range.level[l].sens - 1)); in mls_sid_to_context()
114 e = &context->range.level[l].cat; in mls_sid_to_context()
149 if (l == 0) { in mls_sid_to_context()
[all …]
Dsidtab.c135 u32 l; in sidtab_alloc_roots() local
143 for (l = 1; l <= level; ++l) in sidtab_alloc_roots()
144 if (!s->roots[l].ptr_inner) { in sidtab_alloc_roots()
145 s->roots[l].ptr_inner = kzalloc(SIDTAB_NODE_ALLOC_SIZE, in sidtab_alloc_roots()
147 if (!s->roots[l].ptr_inner) in sidtab_alloc_roots()
149 s->roots[l].ptr_inner->entries[0] = s->roots[l - 1]; in sidtab_alloc_roots()
Dmls.h33 int mls_level_isvalid(struct policydb *p, struct mls_level *l);
Dpolicydb.c1965 struct ocontext *l, *c; in genfs_read() local
2038 for (l = NULL, c = genfs->head; c; in genfs_read()
2039 l = c, c = c->next) { in genfs_read()
2055 if (l) in genfs_read()
2056 l->next = newc; in genfs_read()
2080 struct ocontext *l, *c; in ocontext_read() local
2089 l = NULL; in ocontext_read()
2095 if (l) in ocontext_read()
2096 l->next = c; in ocontext_read()
2099 l = c; in ocontext_read()
[all …]
/security/apparmor/include/
Dlabel.h154 int aa_label_next_confined(struct aa_label *l, int i);
289 struct aa_label *aa_label_insert(struct aa_labelset *ls, struct aa_label *l);
294 struct aa_label *aa_label_find(struct aa_label *l);
373 static inline struct aa_label *__aa_get_label(struct aa_label *l) in __aa_get_label() argument
375 if (l && kref_get_unless_zero(&l->count)) in __aa_get_label()
376 return l; in __aa_get_label()
381 static inline struct aa_label *aa_get_label(struct aa_label *l) in aa_get_label() argument
383 if (l) in aa_get_label()
384 kref_get(&(l->count)); in aa_get_label()
386 return l; in aa_get_label()
[all …]
Dcred.h103 struct aa_label *l = aa_current_raw_label(); in aa_get_current_label() local
105 if (label_is_stale(l)) in aa_get_current_label()
106 return aa_get_newest_label(l); in aa_get_current_label()
107 return aa_get_label(l); in aa_get_current_label()
Dpolicy_unpack.h112 bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r);
/security/keys/
Dbig_key.c163 unsigned int i, l; in big_key_alloc_buffer() local
181 l = min_t(size_t, len, PAGE_SIZE); in big_key_alloc_buffer()
182 sg_set_page(&buf->sg[i], buf->pages[i], l, 0); in big_key_alloc_buffer()
183 len -= l; in big_key_alloc_buffer()
/security/apparmor/
Dfile.c490 struct aa_label *l, *old; in update_file_ctx() local
496 l = aa_label_merge(old, label, GFP_ATOMIC); in update_file_ctx()
497 if (l) { in update_file_ctx()
498 if (l != old) { in update_file_ctx()
499 rcu_assign_pointer(fctx->label, l); in update_file_ctx()
502 aa_put_label(l); in update_file_ctx()
Dlabel.c812 struct aa_label *l; in aa_label_replace() local
822 l = __label_insert(ls, new, true); in aa_label_replace()
823 res = (l == new); in aa_label_replace()
825 aa_put_label(l); in aa_label_replace()
933 struct aa_label *l; in aa_label_insert() local
942 l = __label_find(label); in aa_label_insert()
944 if (l) in aa_label_insert()
945 return l; in aa_label_insert()
949 l = __label_insert(ls, label, false); in aa_label_insert()
952 return l; in aa_label_insert()
[all …]
Dpolicy.c111 struct aa_label *l; in __add_profile() local
121 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile()
122 AA_BUG(l != &profile->label); in __add_profile()
123 aa_put_label(l); in __add_profile()
Dpolicy_unpack.c138 bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r) in aa_rawdata_eq() argument
140 if (l->size != r->size) in aa_rawdata_eq()
142 if (aa_g_hash_policy && memcmp(l->hash, r->hash, aa_hash_size()) != 0) in aa_rawdata_eq()
144 return memcmp(l->data, r->data, r->size) == 0; in aa_rawdata_eq()
Dapparmorfs.c2102 loff_t l = *pos; in p_start() local
2110 for (; profile && l > 0; l--) in p_start()
/security/integrity/ima/
Dima_fs.c80 loff_t l = *pos; in ima_measurements_start() local
86 if (!l--) { in ima_measurements_start()
Dima_policy.c1354 loff_t l = *pos; in ima_policy_start() local
1359 if (!l--) { in ima_policy_start()
/security/smack/
Dsmack_lsm.c71 static int match_opt_prefix(char *s, int l, char **arg) in match_opt_prefix() argument
77 if (len > l || memcmp(s, smk_mount_opts[i].name, len)) in match_opt_prefix()
79 if (len == l || s[len] != '=') in match_opt_prefix()
1954 struct list_head *l; in smack_cred_free() local
1959 list_for_each_safe(l, n, &tsp->smk_rules) { in smack_cred_free()
1960 rp = list_entry(l, struct smack_rule, list); in smack_cred_free()
/security/selinux/
Dhooks.c438 static int match_opt_prefix(char *s, int l, char **arg) in match_opt_prefix() argument
444 if (len > l || memcmp(s, tokens[i].name, len)) in match_opt_prefix()
447 if (len == l || s[len] != '=') in match_opt_prefix()
450 } else if (len != l) in match_opt_prefix()