Home
last modified time | relevance | path

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

/security/apparmor/
Dmatch.c66 struct table_header *table = NULL; in unpack_table() local
91 table = kvzalloc(tsize, GFP_KERNEL); in unpack_table()
92 if (table) { in unpack_table()
93 table->td_id = th.td_id; in unpack_table()
94 table->td_flags = th.td_flags; in unpack_table()
95 table->td_lolen = th.td_lolen; in unpack_table()
97 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
100 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
103 UNPACK_ARRAY(table->td_data, blob, th.td_lolen, in unpack_table()
110 if (is_vmalloc_addr(table)) in unpack_table()
[all …]
Ddomain.c42 if (!domain->table) in aa_free_domain_entries()
46 kzfree(domain->table[i]); in aa_free_domain_entries()
47 kzfree(domain->table); in aa_free_domain_entries()
48 domain->table = NULL; in aa_free_domain_entries()
390 for (*name = profile->file.trans.table[index]; !label && *name; in x_table_lookup()
439 stack = profile->file.trans.table[xindex & AA_X_INDEX_MASK]; in x_to_label()
Dpolicy_unpack.c461 profile->file.trans.table = kzalloc(sizeof(char *) * size, in unpack_trans_table()
463 if (!profile->file.trans.table) in unpack_trans_table()
475 profile->file.trans.table[i] = str; in unpack_trans_table()
Dlsm.c1077 static int apparmor_dointvec(struct ctl_table *table, int write, in apparmor_dointvec() argument
1085 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.c167 levdatum = hashtab_search(p->p_levels.table, in mls_level_isvalid()
283 levdatum = hashtab_search(pol->p_levels.table, scontextp); in mls_context_to_sid()
308 catdatum = hashtab_search(pol->p_cats.table, in mls_context_to_sid()
324 rngdatum = hashtab_search(pol->p_cats.table, rngptr); in mls_context_to_sid()
477 levdatum = hashtab_search(newp->p_levels.table, in mls_convert_context()
489 catdatum = hashtab_search(newp->p_cats.table, in mls_convert_context()
Dsymtab.h16 struct hashtab *table; /* hash table (keyed on a string) */ member
Dpolicydb.c205 rc = hashtab_insert(p->p_roles.table, key, role); in roles_init()
328 hashtab_map(p->symtab[i].table, destroy_f[i], NULL); in policydb_init()
329 hashtab_destroy(p->symtab[i].table); in policydb_init()
521 hash_eval(s[i].table, symtab_name[i]); in symtab_hash_eval()
602 rc = hashtab_map(p->symtab[i].table, index_f[i], p); in policydb_index()
631 hashtab_map(comdatum->permissions.table, perm_destroy, NULL); in common_destroy()
632 hashtab_destroy(comdatum->permissions.table); in common_destroy()
660 hashtab_map(cladatum->permissions.table, perm_destroy, NULL); in cls_destroy()
661 hashtab_destroy(cladatum->permissions.table); in cls_destroy()
811 hashtab_map(p->symtab[i].table, destroy_f[i], NULL); in policydb_destroy()
[all …]
Dservices.c502 hashtab_map(common_dat->permissions.table, in security_dump_masked_av()
506 if (hashtab_map(tclass_dat->permissions.table, in security_dump_masked_av()
1356 usrdatum = hashtab_search(pol->p_users.table, scontextp); in string_to_context_struct()
1372 role = hashtab_search(pol->p_roles.table, scontextp); in string_to_context_struct()
1384 typdatum = hashtab_search(pol->p_types.table, scontextp); in string_to_context_struct()
1916 usrdatum = hashtab_search(args->newp->p_users.table, in convert_context()
1924 role = hashtab_search(args->newp->p_roles.table, in convert_context()
1932 typdatum = hashtab_search(args->newp->p_types.table, in convert_context()
2503 user = hashtab_search(policydb.p_users.table, username); in security_get_user_sids()
2827 booldatum = hashtab_search(p->p_bools.table, bnames[i]); in security_preserve_bools()
[all …]
/security/apparmor/include/
Ddomain.h25 char **table; member
/security/yama/
Dyama_lsm.c441 static int yama_dointvec_minmax(struct ctl_table *table, int write, in yama_dointvec_minmax() argument
450 table_copy = *table; in yama_dointvec_minmax()