/linux-6.12.1/security/apparmor/include/ |
D | policy_ns.h | 58 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 …]
|
D | policy.h | 34 struct aa_ns; 228 struct aa_ns *ns; 265 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 267 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 271 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label, 273 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label, 391 struct aa_label *label, struct aa_ns *ns); 393 struct aa_label *label, struct aa_ns *ns); 395 struct aa_label *label, struct aa_ns *ns, 397 bool aa_current_policy_view_capable(struct aa_ns *ns); [all …]
|
D | apparmorfs.h | 63 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()
|
D | label.h | 21 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,
|
D | cred.h | 183 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns() 186 struct aa_ns *ns; in aa_get_current_ns()
|
D | policy_unpack.h | 41 struct aa_ns; 104 struct aa_ns *ns;
|
/linux-6.12.1/security/apparmor/ |
D | policy_ns.c | 29 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 …]
|
D | label.c | 107 static int ns_cmp(struct aa_ns *a, struct aa_ns *b) in ns_cmp() 375 struct aa_ns *ns = labels_ns(label); in aa_label_kref() 1124 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge() 1125 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge() 1446 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name() 1478 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname() 1514 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint() 1516 struct aa_ns **prev_ns) in aa_profile_snxprint() 1555 static const char *label_modename(struct aa_ns *ns, struct aa_label *label, in label_modename() 1588 static inline bool display_mode(struct aa_ns *ns, struct aa_label *label, in display_mode() [all …]
|
D | policy.c | 443 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent() 477 static struct aa_policy *__create_missing_ancestors(struct aa_ns *ns, in __create_missing_ancestors() 564 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile() 583 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile() 592 struct aa_ns *ns; in aa_fqlookupn_profile() 815 struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable() 818 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable() 835 struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable() 848 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable() 860 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable() [all …]
|
D | apparmorfs.c | 415 loff_t *pos, struct aa_ns *ns) in policy_update() 446 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_load() 463 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_replace() 483 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_remove() 518 struct aa_ns *ns; 597 void __aa_bump_ns_revision(struct aa_ns *ns) in __aa_bump_ns_revision() 1440 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata() 1801 struct aa_ns *ns, *parent; in ns_mkdir_op() 1851 struct aa_ns *ns, *parent; in ns_rmdir_op() 1898 static void __aa_fs_list_remove_rawdata(struct aa_ns *ns) in __aa_fs_list_remove_rawdata() [all …]
|
D | procattr.c | 33 struct aa_ns *ns = labels_ns(label); in aa_getprocattr() 34 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
|
D | domain.c | 386 struct aa_ns *ns, struct list_head *head, in find_attach() 571 struct aa_ns *ns = profile->ns; in x_to_label()
|
D | policy_unpack.c | 118 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()
|