/security/apparmor/ |
D | policy.c | 118 list_add_rcu(&profile->base.list, list); in __add_profile() 144 list_del_rcu(&profile->base.list); in __list_remove_profile() 161 __aa_profile_list_release(&profile->base.profiles); in __remove_profile() 177 list_for_each_entry_safe(profile, tmp, head, base.list) in __aa_profile_list_release() 216 aa_policy_destroy(&profile->base); in aa_free_profile() 268 if (!aa_policy_init(&profile->base, NULL, hname, gfp)) in aa_alloc_profile() 282 profile->label.hname = profile->base.hname; in aa_alloc_profile() 340 profile = __find_child(&parent->base.profiles, name); in aa_find_child() 368 policy = &ns->base; in __lookup_parent() 375 policy = &profile->base; in __lookup_parent() [all …]
|
D | match.c | 409 #define match_char(state, def, base, next, check, C) \ argument 411 u32 b = (base)[(state)]; \ 443 u32 *base = BASE_TABLE(dfa); in aa_dfa_match_len() local 456 match_char(state, def, base, next, check, in aa_dfa_match_len() 461 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match_len() 483 u32 *base = BASE_TABLE(dfa); in aa_dfa_match() local 497 match_char(state, def, base, next, check, in aa_dfa_match() 502 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match() 522 u32 *base = BASE_TABLE(dfa); in aa_dfa_next() local 530 match_char(state, def, base, next, check, equiv[(u8) c]); in aa_dfa_next() [all …]
|
D | policy_ns.c | 74 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name() 95 if (!aa_policy_init(&ns->base, prefix, name, GFP_KERNEL)) in alloc_ns() 124 aa_policy_destroy(&ns->base); in alloc_ns() 142 aa_policy_destroy(&ns->base); in aa_free_ns() 252 ns = alloc_ns(parent->base.hname, name); in __aa_create_ns() 260 ns->base.name); in __aa_create_ns() 266 list_add_rcu(&ns->base.list, &parent->sub_ns); in __aa_create_ns() 337 __aa_profile_list_release(&ns->base.profiles); in destroy_ns() 363 list_del_rcu(&ns->base.list); in __aa_remove_ns() 378 list_for_each_entry_safe(ns, tmp, head, base.list) in __ns_list_release()
|
D | label.c | 113 AA_BUG(!a->base.hname); in ns_cmp() 114 AA_BUG(!b->base.hname); in ns_cmp() 123 return strcmp(a->base.hname, b->base.hname); in ns_cmp() 143 AA_BUG(!a->base.hname); in profile_cmp() 144 AA_BUG(!b->base.hname); in profile_cmp() 146 if (a == b || a->base.hname == b->base.hname) in profile_cmp() 152 return strcmp(a->base.hname, b->base.hname); in profile_cmp() 379 on_list_rcu(&label->vec[0]->base.profiles)); in aa_label_kref() 381 on_list_rcu(&label->vec[0]->base.list)); in aa_label_kref() 1276 return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); in match_component() [all …]
|
D | apparmorfs.c | 1071 seq_printf(seq, "%s\n", profile->base.name); in seq_profile_name_show() 1098 seq_printf(seq, "%s\n", profile->base.name); in seq_profile_attach_show() 1194 seq_printf(seq, "%s\n", labels_ns(label)->base.name); in seq_ns_name_show() 1513 list_for_each_entry(child, &profile->base.profiles, base.list) in __aafs_profile_rmdir() 1691 len = mangle_name(profile->base.name, NULL); in __aafs_profile_mkdir() 1700 mangle_name(profile->base.name, profile->dirname); in __aafs_profile_mkdir() 1761 list_for_each_entry(child, &profile->base.profiles, base.list) { in __aafs_profile_mkdir() 1900 list_for_each_entry(child, &ns->base.profiles, base.list) in __aafs_ns_rmdir() 1903 list_for_each_entry(sub, &ns->sub_ns, base.list) { in __aafs_ns_rmdir() 2011 name = ns->base.name; in __aafs_ns_mkdir() [all …]
|
D | domain.c | 108 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component() 115 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component() 401 list_for_each_entry_rcu(profile, head, base.list) { in find_attach() 474 } else if (!strcmp(profile->base.name, name)) { in find_attach() 586 new = find_attach(bprm, ns, &profile->base.profiles, in x_to_label() 590 new = find_attach(bprm, ns, &ns->base.profiles, in x_to_label() 612 struct aa_label *base = new; in x_to_label() local 614 new = aa_label_parse(base, stack, GFP_KERNEL, true, false); in x_to_label() 617 aa_put_label(base); in x_to_label() 655 &profile->ns->base.profiles, name, &info); in profile_transition() [all …]
|
D | audit.c | 83 profile->ns->base.hname); in audit_pre() 86 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
|
D | policy_unpack.c | 115 aad(&sa)->name = new->base.hname; in audit_iface()
|
/security/apparmor/include/ |
D | policy_ns.h | 59 struct aa_policy base; member 153 static inline struct aa_ns *__aa_lookup_ns(struct aa_ns *base, in __aa_lookup_ns() argument 156 return __aa_lookupn_ns(base, hname, strlen(hname)); in __aa_lookup_ns()
|
D | policy.h | 130 struct aa_policy base; member 181 const char *base, gfp_t gfp); 188 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base,
|
D | label.h | 328 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, 331 struct aa_label *aa_label_parse(struct aa_label *base, const char *str,
|
/security/selinux/ |
D | netlabel.c | 276 struct sk_security_struct *sksec = ep->base.sk->sk_security; in selinux_netlbl_sctp_assoc_request() 280 if (ep->base.sk->sk_family != PF_INET && in selinux_netlbl_sctp_assoc_request() 281 ep->base.sk->sk_family != PF_INET6) in selinux_netlbl_sctp_assoc_request() 296 rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr4, &secattr); in selinux_netlbl_sctp_assoc_request() 300 rc = netlbl_conn_setattr(ep->base.sk, (void *)&addr6, &secattr); in selinux_netlbl_sctp_assoc_request()
|
D | hooks.c | 5403 struct sk_security_struct *sksec = ep->base.sk->sk_security; in selinux_sctp_assoc_request() 5420 err = selinux_skb_peerlbl_sid(skb, ep->base.sk->sk_family, in selinux_sctp_assoc_request() 5444 ad.u.net->sk = ep->base.sk; in selinux_sctp_assoc_request()
|
/security/tomoyo/ |
D | util.c | 189 int base = 10; in tomoyo_parse_ulong() local 195 base = 16; in tomoyo_parse_ulong() 198 base = 8; in tomoyo_parse_ulong() 202 *result = simple_strtoul(cp, &ep, base); in tomoyo_parse_ulong() 206 switch (base) { in tomoyo_parse_ulong()
|
/security/keys/ |
D | dh.c | 291 dlen = dh_data_from_key(pcopy.base, &dh_inputs.g); in __keyctl_dh_compute()
|