Home
last modified time | relevance | path

Searched refs:base (Results 1 – 8 of 8) sorted by relevance

/security/apparmor/
Dpolicy.c263 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name()
284 if (!policy_init(&ns->base, prefix, name)) in alloc_namespace()
309 kzfree(ns->base.hname); in alloc_namespace()
327 policy_destroy(&ns->base); in free_namespace()
343 free_namespace(container_of(kref, struct aa_namespace, base.count)); in aa_free_namespace_kref()
411 new_ns = alloc_namespace(root->base.hname, name); in aa_prepare_namespace()
421 list_add(&new_ns->base.list, &root->sub_ns); in aa_prepare_namespace()
450 list_add(&profile->base.list, list); in __list_add_profile()
469 list_del_init(&profile->base.list); in __list_remove_profile()
493 policy = &old->parent->base; in __replace_profile()
[all …]
Ddomain.c124 state = aa_dfa_match(profile->file.dfa, start, ns->base.name); in change_profile_perms()
151 list_for_each_entry(profile, head, base.list) { in __attach_match()
163 } else if (!strcmp(profile->base.name, name)) in __attach_match()
270 xname = profile->base.hname; in x_table_lookup()
320 new_profile = find_attach(ns, &profile->base.profiles, in x_to_profile()
324 new_profile = find_attach(ns, &ns->base.profiles, in x_to_profile()
394 new_profile = find_attach(ns, &ns->base.profiles, name); in apparmor_bprm_set_creds()
419 cxt->onexec->base.name, in apparmor_bprm_set_creds()
456 target = new_profile->base.hname; in apparmor_bprm_set_creds()
503 name, new_profile->base.hname); in apparmor_bprm_set_creds()
[all …]
Dmatch.c303 u32 *base = BASE_TABLE(dfa); in aa_dfa_match_len() local
317 pos = base[state] + equiv[(u8) *str++]; in aa_dfa_match_len()
326 pos = base[state] + (u8) *str++; in aa_dfa_match_len()
353 u32 *base = BASE_TABLE(dfa); in aa_dfa_match() local
367 pos = base[state] + equiv[(u8) *str++]; in aa_dfa_match()
376 pos = base[state] + (u8) *str++; in aa_dfa_match()
401 u32 *base = BASE_TABLE(dfa); in aa_dfa_next() local
412 pos = base[state] + equiv[(u8) c]; in aa_dfa_next()
419 pos = base[state] + (u8) c; in aa_dfa_next()
Dprocattr.c60 name_len = strlen(profile->base.hname); in aa_getprocattr()
73 sprintf(s, "%s\n", profile->base.hname); in aa_getprocattr()
75 sprintf(s, "%s (%s)\n", profile->base.hname, mode_str); in aa_getprocattr()
Daudit.c142 audit_log_untrustedstring(ab, profile->ns->base.hname); in audit_pre()
145 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
Dpolicy_unpack.c76 audit_log_untrustedstring(ab, name->base.hname); in audit_cb()
/security/apparmor/include/
Dpolicy.h124 struct aa_policy base; member
178 struct aa_policy base; member
232 kref_get(&(ns->base.count)); in aa_get_namespace()
246 kref_put(&ns->base.count, aa_free_namespace_kref); in aa_put_namespace()
293 kref_get(&(p->base.count)); in aa_get_profile()
305 kref_put(&p->base.count, aa_free_profile_kref); in aa_put_profile()
/security/tomoyo/
Dutil.c201 int base = 10; in tomoyo_parse_ulong() local
205 base = 16; in tomoyo_parse_ulong()
208 base = 8; in tomoyo_parse_ulong()
212 *result = simple_strtoul(cp, &ep, base); in tomoyo_parse_ulong()
216 switch (base) { in tomoyo_parse_ulong()