Home
last modified time | relevance | path

Searched refs:aa_ns (Results 1 – 14 of 14) sorted by relevance

/linux/security/apparmor/include/
A Dpolicy_ns.h58 struct aa_ns { struct
60 struct aa_ns *parent; argument
83 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns);
84 const char *aa_ns_name(struct aa_ns *parent, struct aa_ns *child, bool subns);
90 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name);
91 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n);
93 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n);
94 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name,
96 struct aa_ns *aa_prepare_ns(struct aa_ns *root, const char *name);
112 static inline struct aa_ns *aa_get_ns(struct aa_ns *ns) in aa_get_ns()
[all …]
A Dpolicy.h34 struct aa_ns;
133 struct aa_ns *ns;
187 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
190 struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name);
192 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
194 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
304 bool aa_policy_view_capable(struct aa_label *label, struct aa_ns *ns);
305 bool aa_policy_admin_capable(struct aa_label *label, struct aa_ns *ns);
306 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns,
308 bool aa_current_policy_view_capable(struct aa_ns *ns);
[all …]
A Dapparmorfs.h63 struct aa_ns;
107 void __aa_bump_ns_revision(struct aa_ns *ns);
112 void __aafs_ns_rmdir(struct aa_ns *ns);
113 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name,
118 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata);
A Dlabel.h21 struct aa_ns;
219 struct aa_ns *__ns = labels_ns(L); \
273 void __aa_labelset_update_subtree(struct aa_ns *ns);
302 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp);
309 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,
311 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
313 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
315 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns,
317 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
319 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
A Dpolicy_unpack.h37 struct aa_ns;
63 struct aa_ns *ns;
A Dcred.h176 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns()
179 struct aa_ns *ns; in aa_get_current_ns()
/linux/security/apparmor/
A Dpolicy_ns.c26 struct aa_ns *root_ns;
37 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible()
61 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name()
89 struct aa_ns *ns; in alloc_ns()
162 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n) in aa_findn_ns()
183 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) in aa_find_ns()
231 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns()
245 struct aa_ns *ns; in __aa_create_ns()
285 struct aa_ns *ns; in __aa_find_or_create_ns()
308 struct aa_ns *aa_prepare_ns(struct aa_ns *parent, const char *name) in aa_prepare_ns()
[all …]
A Dpolicy.c360 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
451 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile()
460 struct aa_ns *ns; in aa_fqlookupn_profile()
659 bool aa_policy_view_capable(struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable()
662 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable()
678 bool aa_policy_admin_capable(struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable()
690 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable()
702 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable()
837 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace()
901 struct aa_ns *ns = NULL; in aa_replace_profiles()
[all …]
A Dlabel.c107 static int ns_cmp(struct aa_ns *a, struct aa_ns *b) in ns_cmp()
370 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
1120 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1121 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1513 struct aa_ns **prev_ns) in aa_profile_snxprint()
1626 struct aa_ns *prev_ns = NULL; in aa_label_snxprint()
1813 struct aa_ns *ns = aa_get_current_ns(); in aa_label_audit()
1821 struct aa_ns *ns = aa_get_current_ns(); in aa_label_seq_print()
1829 struct aa_ns *ns = aa_get_current_ns(); in aa_label_printk()
2120 static void __labelset_update(struct aa_ns *ns) in __labelset_update()
[all …]
A Dapparmorfs.c514 struct aa_ns *ns;
1778 struct aa_ns *ns, *parent; in ns_mkdir_op()
1827 struct aa_ns *ns, *parent; in ns_rmdir_op()
1889 struct aa_ns *sub; in __aafs_ns_rmdir()
1998 struct aa_ns *sub; in __aafs_ns_mkdir()
2061 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns()
2063 struct aa_ns *parent, *next; in __next_ns()
2101 struct aa_ns *ns) in __first_profile()
2126 struct aa_ns *ns = p->ns; in __next_profile()
2213 struct aa_ns *ns = f->private; in p_next()
[all …]
A Dprocattr.c33 struct aa_ns *ns = labels_ns(label); in aa_getprocattr()
34 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
A Ddomain.c389 struct aa_ns *ns, struct list_head *head, in find_attach()
564 struct aa_ns *ns = profile->ns; in x_to_label()
A Dpolicy_unpack.c157 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()
A Dlsm.c862 struct aa_ns *ns = aa_get_current_ns(); in apparmor_socket_post_create()

Completed in 45 milliseconds