Home
last modified time | relevance | path

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

/security/apparmor/include/
A Dpolicy_ns.h58 struct aa_ns { struct
60 struct aa_ns *parent; argument
78 extern struct aa_ns *root_ns; argument
84 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns);
85 const char *aa_ns_name(struct aa_ns *parent, struct aa_ns *child, bool subns);
86 void aa_free_ns(struct aa_ns *ns);
90 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n);
91 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n);
92 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name,
94 struct aa_ns *aa_prepare_ns(struct aa_ns *root, const char *name);
[all …]
A Dpolicy.h34 struct aa_ns;
238 struct aa_ns *ns;
278 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
283 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
285 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
417 struct aa_label *label, struct aa_ns *ns);
419 struct aa_label *label, struct aa_ns *ns);
421 struct aa_label *label, struct aa_ns *ns,
423 bool aa_current_policy_view_capable(struct aa_ns *ns);
424 bool aa_current_policy_admin_capable(struct aa_ns *ns);
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,
120 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata);
127 static inline int __aa_fs_create_rawdata(struct aa_ns *ns, in __aa_fs_create_rawdata()
A Dlabel.h21 struct aa_ns;
212 struct aa_ns *__ns = labels_ns(L); \
263 void __aa_labelset_update_subtree(struct aa_ns *ns);
290 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp);
297 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,
299 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
301 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
303 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns,
305 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
307 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
A Dcred.h199 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns()
202 struct aa_ns *ns; in aa_get_current_ns()
A Dpolicy_unpack.h41 struct aa_ns;
104 struct aa_ns *ns;
/security/apparmor/
A Dpolicy_ns.c29 struct aa_ns *root_ns;
40 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible()
64 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name()
107 struct aa_ns *ns; in alloc_ns()
205 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns()
216 static struct aa_ns *__aa_create_ns(struct aa_ns *parent, const char *name, in __aa_create_ns()
219 struct aa_ns *ns; in __aa_create_ns()
256 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name, in __aa_find_or_create_ns()
259 struct aa_ns *ns; in __aa_find_or_create_ns()
282 struct aa_ns *aa_prepare_ns(struct aa_ns *parent, const char *name) in aa_prepare_ns()
[all …]
A Dpolicy.c477 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
621 struct aa_ns *ns; in aa_fqlookupn_profile()
847 struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable()
850 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable()
867 struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable()
880 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable()
892 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable()
914 struct aa_ns *ns, u32 mask) in aa_may_manage_policy()
1029 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace()
1093 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()
379 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
1112 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1113 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1504 struct aa_ns **prev_ns) in aa_profile_snxprint()
1617 struct aa_ns *prev_ns = NULL; in aa_label_snxprint()
1755 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, in aa_label_seq_xprint()
1804 struct aa_ns *ns = aa_get_current_ns(); in aa_label_printk()
2096 static void __labelset_update(struct aa_ns *ns) in __labelset_update()
2122 void __aa_labelset_update_subtree(struct aa_ns *ns) in __aa_labelset_update_subtree()
[all …]
A Dapparmorfs.c518 struct aa_ns *ns;
1809 struct aa_ns *ns, *parent; in ns_mkdir_op()
1859 struct aa_ns *ns, *parent; in ns_rmdir_op()
1922 struct aa_ns *sub; in __aafs_ns_rmdir()
2031 struct aa_ns *sub; in __aafs_ns_mkdir()
2094 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns()
2096 struct aa_ns *parent, *next; in __next_ns()
2134 struct aa_ns *ns) in __first_profile()
2159 struct aa_ns *ns = p->ns; in __next_profile()
2246 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.c390 struct aa_ns *ns, struct list_head *head, in find_attach()
576 struct aa_ns *ns = profile->ns; in x_to_label()
A Dpolicy_unpack.c119 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()

Completed in 29 milliseconds