Home
last modified time | relevance | path

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

/linux/security/apparmor/include/
H A Dpolicy_ns.h60 struct aa_ns { struct
62 struct aa_ns *parent; argument
80 extern struct aa_ns *root_ns; argument
86 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns);
87 const char *aa_ns_name(struct aa_ns *parent, struct aa_ns *child, bool subns);
88 void aa_free_ns(struct aa_ns *ns);
92 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, 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);
[all …]
H A Dpolicy.h34 struct aa_ns;
262 struct aa_ns *ns;
302 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
307 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
309 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
441 struct aa_label *label, struct aa_ns *ns);
443 struct aa_label *label, struct aa_ns *ns);
445 struct aa_label *label, struct aa_ns *ns,
447 bool aa_current_policy_view_capable(struct aa_ns *ns);
448 bool aa_current_policy_admin_capable(struct aa_ns *ns);
H A Dapparmorfs.h63 struct aa_ns;
109 void __aa_bump_ns_revision(struct aa_ns *ns);
114 void __aafs_ns_rmdir(struct aa_ns *ns);
115 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name,
122 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata);
131 static inline int __aa_fs_create_rawdata(struct aa_ns *ns, in __aa_fs_create_rawdata()
H 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 *n
[all...]
H A Dcred.h237 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns()
240 struct aa_ns *ns; in aa_get_current_ns()
H A Dpolicy_unpack.h41 struct aa_ns;
116 struct aa_ns *ns;
/linux/security/apparmor/
H 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()
105 static struct aa_ns *alloc_ns(const char *prefix, const char *name) in alloc_ns()
107 struct aa_ns *ns; in alloc_ns()
148 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
174 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns()
176 struct aa_ns *ns = view; in __aa_lookupn_ns()
205 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns()
207 struct aa_ns *ns = NULL; in aa_lookupn_ns()
[all …]
H A Dlabel.c109 static int ns_cmp(struct aa_ns *a, struct aa_ns *b) in ns_cmp()
382 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
1116 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1117 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1433 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1465 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1501 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint()
1503 struct aa_ns **prev_ns) in aa_profile_snxprint()
1542 static const char *label_modename(struct aa_ns *n
[all...]
H A Dapparmorfs.c159 static struct aa_ns *get_ns_common_ref(struct aa_common_ref *ref) in get_ns_common_ref()
486 loff_t *pos, struct aa_ns *ns, in policy_update()
521 struct aa_ns *ns = get_ns_common_ref(f->f_inode->i_private); in profile_load()
539 struct aa_ns *ns = get_ns_common_ref(f->f_inode->i_private); in profile_replace()
559 struct aa_ns *ns = get_ns_common_ref(f->f_inode->i_private); in profile_remove()
594 struct aa_ns *ns;
673 void __aa_bump_ns_revision(struct aa_ns *ns) in __aa_bump_ns_revision()
1520 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata()
1934 struct aa_ns *ns, *parent; in ns_rmdir_op()
1984 struct aa_ns *n in __aa_fs_list_remove_rawdata()
[all...]
H A Dpolicy.c522 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
556 static struct aa_policy *__create_missing_ancestors(struct aa_ns *ns, in __create_missing_ancestors()
643 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
666 struct aa_ns *ns; in aa_fqlookupn_profile()
895 struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable()
898 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable()
915 struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable()
928 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable()
940 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable()
989 struct aa_ns *n in aa_may_manage_policy()
[all...]
H 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()
H A Ddomain.c391 struct aa_ns *ns, struct list_head *head, in find_attach()
577 struct aa_ns *ns = profile->ns; in x_to_label()
1120 struct aa_ns *ns, *new_ns; in change_hat()
H A Dpolicy_unpack.c135 struct aa_ns *ns = aa_get_ns(d->ns); in do_ploaddata_rmfs()