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.c1047 struct aa_proxy *proxy = aa_get_proxy(inode->i_private); in seq_profile_open() local
1048 int error = single_open(file, show, proxy); in seq_profile_open()
1052 aa_put_proxy(proxy); in seq_profile_open()
1068 struct aa_proxy *proxy = seq->private; in seq_profile_name_show() local
1069 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_name_show()
1079 struct aa_proxy *proxy = seq->private; in seq_profile_mode_show() local
1080 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_mode_show()
1090 struct aa_proxy *proxy = seq->private; in seq_profile_attach_show() local
1091 struct aa_label *label = aa_get_label_rcu(&proxy->label); in seq_profile_attach_show()
1106 struct aa_proxy *proxy = seq->private; in seq_profile_hash_show() local
[all …]
Dpolicy.c257 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() argument
274 if (!proxy) { in aa_alloc_profile()
275 proxy = aa_alloc_proxy(&profile->label, gfp); in aa_alloc_profile()
276 if (!proxy) in aa_alloc_profile()
279 aa_get_proxy(proxy); in aa_alloc_profile()
280 profile->label.proxy = proxy; in aa_alloc_profile()
1011 aa_put_proxy(ent->new->label.proxy); in aa_replace_profiles()
1012 ent->new->label.proxy = NULL; in aa_replace_profiles()
Ddomain.c670 if (new && new->proxy == profile->label.proxy && info) { in profile_transition()
950 if (label->proxy != new->proxy) { in apparmor_bprm_creds_for_exec()
Dlsm.c707 if ((new_label->proxy == label->proxy) || in apparmor_bprm_committing_creds()
/security/apparmor/include/
Dlabel.h129 struct aa_proxy *proxy; member
282 struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp);
427 AA_BUG(!l->proxy); in aa_get_newest_label()
428 AA_BUG(!l->proxy->label); in aa_get_newest_label()
433 tmp = aa_get_label_rcu(&l->proxy->label); in aa_get_newest_label()
452 static inline struct aa_proxy *aa_get_proxy(struct aa_proxy *proxy) in aa_get_proxy() argument
454 if (proxy) in aa_get_proxy()
455 kref_get(&(proxy->count)); in aa_get_proxy()
457 return proxy; in aa_get_proxy()
460 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,