| /security/selinux/ss/ |
| A D | mls.c | 43 for (l = 0; l < 2; l++) { in mls_compute_context_len() 69 if (l == 0) { in mls_compute_context_len() 102 for (l = 0; l < 2; l++) { in mls_sid_to_context() 146 if (l == 0) { in mls_sid_to_context() 162 if (!l->sens || l->sens > p->p_levels.nprim) in mls_level_isvalid() 237 int l, rc; in mls_context_to_sid() local 279 for (l = 0; l < 2; l++) { in mls_context_to_sid() 384 for (l = 0; l < 2; l++) { in mls_range_set() 385 context->range.level[l].sens = range->level[l].sens; in mls_range_set() 446 int l; in mls_convert_context() local [all …]
|
| A D | sidtab.c | 165 u32 l; in sidtab_alloc_roots() local 173 for (l = 1; l <= level; ++l) in sidtab_alloc_roots() 174 if (!s->roots[l].ptr_inner) { in sidtab_alloc_roots() 175 s->roots[l].ptr_inner = in sidtab_alloc_roots() 177 if (!s->roots[l].ptr_inner) in sidtab_alloc_roots() 179 s->roots[l].ptr_inner->entries[0] = s->roots[l - 1]; in sidtab_alloc_roots()
|
| A D | mls.h | 32 int mls_level_isvalid(struct policydb *p, struct mls_level *l);
|
| A D | policydb.c | 2141 struct ocontext *l, *c; in genfs_read() local 2215 for (l = NULL, c = genfs->head; c; l = c, c = c->next) { in genfs_read() 2231 if (l) in genfs_read() 2232 l->next = newc; in genfs_read() 2257 struct ocontext *l, *c; in ocontext_read() local 2266 l = NULL; in ocontext_read() 2272 if (l) in ocontext_read() 2273 l->next = c; in ocontext_read() 2276 l = c; in ocontext_read() 2775 buf[0] = cpu_to_le32(l->sens); in mls_write_level() [all …]
|
| /security/apparmor/include/ |
| A D | cred.h | 69 struct aa_label *l = aa_cred_raw_label(cred); in aa_get_newest_cred_label_condref() local 71 if (unlikely(label_is_stale(l))) { in aa_get_newest_cred_label_condref() 73 return aa_get_newest_label(l); in aa_get_newest_cred_label_condref() 77 return l; in aa_get_newest_cred_label_condref() 80 static inline void aa_put_label_condref(struct aa_label *l, bool needput) in aa_put_label_condref() argument 83 aa_put_label(l); in aa_put_label_condref() 110 struct aa_label *l = aa_current_raw_label(); in aa_get_current_label() local 112 if (label_is_stale(l)) in aa_get_current_label() 113 return aa_get_newest_label(l); in aa_get_current_label() 114 return aa_get_label(l); in aa_get_current_label()
|
| A D | label.h | 360 if (l && kref_get_unless_zero(&l->count)) in __aa_get_label() 361 return l; in __aa_get_label() 368 if (l) in aa_get_label() 369 kref_get(&(l->count)); in aa_get_label() 371 return l; in aa_get_label() 388 c = rcu_dereference(*l); in aa_get_label_rcu() 405 if (!l) in aa_get_newest_label() 408 if (label_is_stale(l)) { in aa_get_newest_label() 411 AA_BUG(!l->proxy); in aa_get_newest_label() 423 return aa_get_label(l); in aa_get_newest_label() [all …]
|
| A D | policy_unpack.h | 159 bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r);
|
| /security/selinux/ |
| A D | genheaders.c | 88 int len, l; in main() local 92 l = sizeof(s) - 1; in main() 93 if (len >= l && memcmp(name + len - l, s, l) == 0) in main()
|
| A D | hooks.c | 415 static int match_opt_prefix(char *s, int l, char **arg) in match_opt_prefix() argument 421 if (len > l || memcmp(s, tokens[i].name, len)) in match_opt_prefix() 424 if (len == l || s[len] != '=') in match_opt_prefix() 427 } else if (len != l) in match_opt_prefix()
|
| /security/apparmor/ |
| A D | af_unix.c | 649 struct aa_label *l, *old; in update_sk_ctx() local 665 l = aa_label_merge(old, label, GFP_ATOMIC); in update_sk_ctx() 666 if (l) { in update_sk_ctx() 667 if (l != old) { in update_sk_ctx() 668 rcu_assign_pointer(ctx->label, l); in update_sk_ctx() 671 aa_put_label(l); in update_sk_ctx() 690 struct aa_label *l, *old; in update_peer_ctx() local 696 if (l) { in update_peer_ctx() 697 if (l != old) { in update_peer_ctx() 698 rcu_assign_pointer(ctx->peer, l); in update_peer_ctx() [all …]
|
| A D | file.c | 460 struct aa_label *l, *old; in update_file_ctx() local 466 l = aa_label_merge(old, label, GFP_ATOMIC); in update_file_ctx() 467 if (l) { in update_file_ctx() 468 if (l != old) { in update_file_ctx() 469 rcu_assign_pointer(fctx->label, l); in update_file_ctx() 472 aa_put_label(l); in update_file_ctx()
|
| A D | label.c | 817 struct aa_label *l; in aa_label_replace() local 827 l = __label_insert(ls, new, true); in aa_label_replace() 828 res = (l == new); in aa_label_replace() 830 aa_put_label(l); in aa_label_replace() 921 struct aa_label *l; in aa_label_insert() local 930 l = __label_find(label); in aa_label_insert() 932 if (l) in aa_label_insert() 933 return l; in aa_label_insert() 937 l = __label_insert(ls, label, false); in aa_label_insert() 940 return l; in aa_label_insert() [all …]
|
| A D | policy.c | 148 struct aa_label *l; in __add_profile() local 158 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 159 AA_BUG(l != &profile->label); in __add_profile() 160 aa_put_label(l); in __add_profile()
|
| A D | policy_unpack.c | 101 bool aa_rawdata_eq(struct aa_loaddata *l, struct aa_loaddata *r) in aa_rawdata_eq() argument 103 if (l->size != r->size) in aa_rawdata_eq() 105 if (l->compressed_size != r->compressed_size) in aa_rawdata_eq() 107 if (aa_g_hash_policy && memcmp(l->hash, r->hash, aa_hash_size()) != 0) in aa_rawdata_eq() 109 return memcmp(l->data, r->data, r->compressed_size ?: r->size) == 0; in aa_rawdata_eq()
|
| A D | apparmorfs.c | 2219 loff_t l = *pos; in p_start() local 2227 for (; profile && l > 0; l--) in p_start()
|
| /security/integrity/ima/ |
| A D | ima_fs.c | 79 loff_t l = *pos; in ima_measurements_start() local 85 if (!l--) { in ima_measurements_start()
|
| A D | ima_policy.c | 2000 loff_t l = *pos; in ima_policy_start() local 2007 if (!l--) { in ima_policy_start()
|
| /security/smack/ |
| A D | smack_lsm.c | 83 static int match_opt_prefix(char *s, int l, char **arg) in match_opt_prefix() argument 89 if (len > l || memcmp(s, smk_mount_opts[i].name, len)) in match_opt_prefix() 91 if (len == l || s[len] != '=') in match_opt_prefix() 2062 struct list_head *l; in smack_cred_free() local 2067 list_for_each_safe(l, n, &tsp->smk_rules) { in smack_cred_free() 2068 rp = list_entry(l, struct smack_rule, list); in smack_cred_free()
|