Home
last modified time | relevance | path

Searched refs:proxy (Results 1 – 7 of 7) sorted by relevance

/security/apparmor/
Dlabel.c42 static void free_proxy(struct aa_proxy *proxy) in free_proxy() argument
44 if (proxy) { in free_proxy()
46 aa_put_label(rcu_dereference_protected(proxy->label, true)); in free_proxy()
47 memset(proxy, 0, sizeof(*proxy)); in free_proxy()
48 RCU_INIT_POINTER(proxy->label, (struct aa_label *)PROXY_POISON); in free_proxy()
49 kfree(proxy); in free_proxy()
55 struct aa_proxy *proxy = container_of(kref, struct aa_proxy, count); in aa_proxy_kref() local
57 free_proxy(proxy); in aa_proxy_kref()
81 tmp = rcu_dereference_protected(orig->proxy->label, in __aa_proxy_redirect()
83 rcu_assign_pointer(orig->proxy->label, aa_get_label(new)); in __aa_proxy_redirect()
[all …]
Dapparmorfs.c1049 struct aa_proxy *proxy = aa_get_proxy(inode->i_private); in seq_profile_open() local
1050 int error = single_open(file, show, proxy); in seq_profile_open()
1054 aa_put_proxy(proxy); in seq_profile_open()
1070 struct aa_proxy *proxy = seq->private; in seq_profile_name_show() local
1071 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_name_show()
1081 struct aa_proxy *proxy = seq->private; in seq_profile_mode_show() local
1082 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_mode_show()
1092 struct aa_proxy *proxy = seq->private; in seq_profile_attach_show() local
1093 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_attach_show()
1108 struct aa_proxy *proxy = seq->private; in seq_profile_hash_show() local
[all …]
Dpolicy.c256 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() argument
273 if (!proxy) { in aa_alloc_profile()
274 proxy = aa_alloc_proxy(&profile->label, gfp); in aa_alloc_profile()
275 if (!proxy) in aa_alloc_profile()
278 aa_get_proxy(proxy); in aa_alloc_profile()
279 profile->label.proxy = proxy; in aa_alloc_profile()
1010 aa_put_proxy(ent->new->label.proxy); in aa_replace_profiles()
1011 ent->new->label.proxy = NULL; in aa_replace_profiles()
Ddomain.c665 if (new && new->proxy == profile->label.proxy && info) { in profile_transition()
967 if (label->proxy != new->proxy) { in apparmor_bprm_set_creds()
Dlsm.c685 if ((new_label->proxy == label->proxy) || in apparmor_bprm_committing_creds()
/security/apparmor/include/
Dlabel.h129 struct aa_proxy *proxy; member
281 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp);
426 AA_BUG(!l->proxy); in aa_get_newest_label()
427 AA_BUG(!l->proxy->label); in aa_get_newest_label()
432 tmp = aa_get_label_rcu(&l->proxy->label); in aa_get_newest_label()
451 static inline struct aa_proxy *aa_get_proxy(struct aa_proxy *proxy) in aa_get_proxy() argument
453 if (proxy) in aa_get_proxy()
454 kref_get(&(proxy->count)); in aa_get_proxy()
456 return proxy; in aa_get_proxy()
459 static inline void aa_put_proxy(struct aa_proxy *proxy) in aa_put_proxy() argument
[all …]
Dpolicy.h178 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy,