Home
last modified time | relevance | path

Searched refs:table (Results 1 – 12 of 12) sorted by relevance

/security/apparmor/
Dmatch.c79 struct table_header *table = NULL; in unpack_table() local
107 table = kvzalloc(tsize, GFP_KERNEL); in unpack_table()
108 if (table) { in unpack_table()
109 table->td_id = th.td_id; in unpack_table()
110 table->td_flags = th.td_flags; in unpack_table()
111 table->td_lolen = th.td_lolen; in unpack_table()
113 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
116 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
119 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
126 if (is_vmalloc_addr(table)) in unpack_table()
[all …]
Ddomain.c39 if (!domain->table) in aa_free_domain_entries()
43 kzfree(domain->table[i]); in aa_free_domain_entries()
44 kzfree(domain->table); in aa_free_domain_entries()
45 domain->table = NULL; in aa_free_domain_entries()
517 for (*name = profile->file.trans.table[index]; !label && *name; in x_table_lookup()
568 stack = profile->file.trans.table[xindex & AA_X_INDEX_MASK]; in x_to_label()
Dpolicy_unpack.c486 profile->file.trans.table = kcalloc(size, sizeof(char *), in unpack_trans_table()
488 if (!profile->file.trans.table) in unpack_trans_table()
500 profile->file.trans.table[i] = str; in unpack_trans_table()
Dlsm.c1578 static int apparmor_dointvec(struct ctl_table *table, int write, in apparmor_dointvec() argument
1586 return proc_dointvec(table, write, buffer, lenp, ppos); in apparmor_dointvec()
/security/
Dmin_addr.c32 int mmap_min_addr_handler(struct ctl_table *table, int write, in mmap_min_addr_handler() argument
40 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); in mmap_min_addr_handler()
/security/selinux/ss/
Dsymtab.c38 s->table = hashtab_create(symhash, symcmp, size); in symtab_init()
39 if (!s->table) in symtab_init()
Dmls.c168 levdatum = hashtab_search(p->p_levels.table, in mls_level_isvalid()
296 levdatum = hashtab_search(pol->p_levels.table, sensitivity); in mls_context_to_sid()
315 catdatum = hashtab_search(pol->p_cats.table, cur_cat); in mls_context_to_sid()
328 rngdatum = hashtab_search(pol->p_cats.table, rngptr); in mls_context_to_sid()
461 levdatum = hashtab_search(newp->p_levels.table, in mls_convert_context()
473 catdatum = hashtab_search(newp->p_cats.table, in mls_convert_context()
Dpolicydb.c199 hashtab_map(comdatum->permissions.table, perm_destroy, NULL); in common_destroy()
200 hashtab_destroy(comdatum->permissions.table); in common_destroy()
228 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in cls_destroy()
229 hashtab_destroy(cladatum->permissions.table); in cls_destroy()
391 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init()
514 hashtab_map(p->symtab[i].table, destroy_f[i], NULL); in policydb_init()
515 hashtab_destroy(p->symtab[i].table); in policydb_init()
679 hash_eval(s[i].table, symtab_name[i]); in symtab_hash_eval()
750 rc = hashtab_map(p->symtab[i].table, index_f[i], p); in policydb_index()
772 hashtab_map(p->symtab[i].table, destroy_f[i], NULL); in policydb_destroy()
[all …]
Dsymtab.h16 struct hashtab *table; /* hash table (keyed on a string) */ member
Dservices.c480 hashtab_map(common_dat->permissions.table, in security_dump_masked_av()
484 if (hashtab_map(tclass_dat->permissions.table, in security_dump_masked_av()
1420 usrdatum = hashtab_search(pol->p_users.table, scontextp); in string_to_context_struct()
1436 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct()
1448 typdatum = hashtab_search(pol->p_types.table, scontextp); in string_to_context_struct()
2032 usrdatum = hashtab_search(args->newp->p_users.table, in convert_context()
2041 role = hashtab_search(args->newp->p_roles.table, in convert_context()
2049 typdatum = hashtab_search(args->newp->p_types.table, in convert_context()
2672 user = hashtab_search(policydb->p_users.table, username); in security_get_user_sids()
3026 booldatum = hashtab_search(policydb->p_bools.table, bnames[i]); in security_preserve_bools()
[all …]
/security/apparmor/include/
Ddomain.h21 char **table; member
/security/yama/
Dyama_lsm.c432 static int yama_dointvec_minmax(struct ctl_table *table, int write, in yama_dointvec_minmax() argument
441 table_copy = *table; in yama_dointvec_minmax()