Home
last modified time | relevance | path

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

/linux-6.3-rc2/security/apparmor/include/
A Dpolicy_ns.h58 struct aa_ns { struct
60 struct aa_ns *parent; 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);
91 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name);
92 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n);
94 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n);
95 struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name,
97 struct aa_ns *aa_prepare_ns(struct aa_ns *root, const char *name);
113 static inline struct aa_ns *aa_get_ns(struct aa_ns *ns) in aa_get_ns()
[all …]
A Dpolicy.h34 struct aa_ns;
202 struct aa_ns *ns;
246 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
249 struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name);
251 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
253 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
373 bool aa_policy_view_capable(struct aa_label *label, struct aa_ns *ns);
374 bool aa_policy_admin_capable(struct aa_label *label, struct aa_ns *ns);
375 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns,
377 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,
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;
221 struct aa_ns *__ns = labels_ns(L); \
275 void __aa_labelset_update_subtree(struct aa_ns *ns);
304 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp);
311 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,
313 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
315 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
317 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns,
319 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
321 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
A Dcred.h163 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns()
166 struct aa_ns *ns; in aa_get_current_ns()
A Dpolicy_unpack.h41 struct aa_ns;
104 struct aa_ns *ns;
/linux-6.3-rc2/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()
173 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n) in aa_findn_ns()
194 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) in aa_find_ns()
242 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns()
256 struct aa_ns *ns; in __aa_create_ns()
296 struct aa_ns *ns; in __aa_find_or_create_ns()
319 struct aa_ns *aa_prepare_ns(struct aa_ns *parent, const char *name) in aa_prepare_ns()
[all …]
A Dpolicy.c404 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
440 static struct aa_policy *__create_missing_ancestors(struct aa_ns *ns, in __create_missing_ancestors()
555 struct aa_ns *ns; in aa_fqlookupn_profile()
773 bool aa_policy_view_capable(struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable()
776 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable()
792 bool aa_policy_admin_capable(struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable()
804 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable()
816 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable()
951 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace()
1015 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()
373 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
1122 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1123 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1514 struct aa_ns **prev_ns) in aa_profile_snxprint()
1627 struct aa_ns *prev_ns = NULL; in aa_label_snxprint()
1814 struct aa_ns *ns = aa_get_current_ns(); in aa_label_audit()
1822 struct aa_ns *ns = aa_get_current_ns(); in aa_label_seq_print()
1830 struct aa_ns *ns = aa_get_current_ns(); in aa_label_printk()
2122 static void __labelset_update(struct aa_ns *ns) in __labelset_update()
[all …]
A Dapparmorfs.c517 struct aa_ns *ns;
1799 struct aa_ns *ns, *parent; in ns_mkdir_op()
1848 struct aa_ns *ns, *parent; in ns_rmdir_op()
1910 struct aa_ns *sub; in __aafs_ns_rmdir()
2019 struct aa_ns *sub; in __aafs_ns_mkdir()
2082 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns()
2084 struct aa_ns *parent, *next; in __next_ns()
2122 struct aa_ns *ns) in __first_profile()
2147 struct aa_ns *ns = p->ns; in __next_profile()
2234 struct aa_ns *ns = f->private; in p_next()
[all …]
A Dprocattr.c32 struct aa_ns *ns = labels_ns(label); in aa_getprocattr()
33 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
A Ddomain.c378 struct aa_ns *ns, struct list_head *head, in find_attach()
562 struct aa_ns *ns = profile->ns; in x_to_label()
A Dpolicy_unpack.c114 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()

Completed in 29 milliseconds