/Linux-v4.19/security/apparmor/include/ |
D | policy_ns.h | 62 struct aa_ns { struct 64 struct aa_ns *parent; argument 81 extern struct aa_ns *root_ns; argument 87 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns); 88 const char *aa_ns_name(struct aa_ns *parent, struct aa_ns *child, bool subns); 89 void aa_free_ns(struct aa_ns *ns); 94 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name); 95 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n); 96 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n); 97 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n); [all …]
|
D | policy.h | 38 struct aa_ns; 137 struct aa_ns *ns; 186 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 188 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 191 struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name); 193 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label, 195 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label, 296 bool policy_view_capable(struct aa_ns *ns); 297 bool policy_admin_capable(struct aa_ns *ns); 298 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns,
|
D | apparmorfs.h | 67 struct aa_ns; 111 void __aa_bump_ns_revision(struct aa_ns *ns); 116 void __aafs_ns_rmdir(struct aa_ns *ns); 117 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);
|
D | label.h | 25 struct aa_ns; 226 struct aa_ns *__ns = labels_ns(L); \ 280 void __aa_labelset_update_subtree(struct aa_ns *ns); 307 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp); 314 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view, 316 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label, 318 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns, 320 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns, 322 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, 324 void aa_label_xprintk(struct aa_ns *ns, struct aa_label *label, int flags,
|
D | policy_unpack.h | 41 struct aa_ns; 66 struct aa_ns *ns;
|
D | cred.h | 164 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns() 167 struct aa_ns *ns; in aa_get_current_ns()
|
/Linux-v4.19/security/apparmor/ |
D | policy_ns.c | 30 struct aa_ns *root_ns; 41 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible() 65 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name() 91 static struct aa_ns *alloc_ns(const char *prefix, const char *name) in alloc_ns() 93 struct aa_ns *ns; in alloc_ns() 141 void aa_free_ns(struct aa_ns *ns) in aa_free_ns() 166 struct aa_ns *aa_findn_ns(struct aa_ns *root, const char *name, size_t n) in aa_findn_ns() 168 struct aa_ns *ns = NULL; in aa_findn_ns() 187 struct aa_ns *aa_find_ns(struct aa_ns *root, const char *name) in aa_find_ns() 204 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() [all …]
|
D | policy.c | 362 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent() 434 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile() 453 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile() 462 struct aa_ns *ns; in aa_fqlookupn_profile() 644 bool policy_view_capable(struct aa_ns *ns) in policy_view_capable() 647 struct aa_ns *view_ns = aa_get_current_ns(); in policy_view_capable() 664 bool policy_admin_capable(struct aa_ns *ns) in policy_admin_capable() 682 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns, u32 mask) in aa_may_manage_policy() 798 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace() 858 ssize_t aa_replace_profiles(struct aa_ns *policy_ns, struct aa_label *label, in aa_replace_profiles() [all …]
|
D | label.c | 111 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() 1097 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge() 1098 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge() 1420 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name() 1452 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname() 1486 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint() 1488 struct aa_ns **prev_ns) in aa_profile_snxprint() 1527 static const char *label_modename(struct aa_ns *ns, struct aa_label *label, in label_modename() 1560 static inline bool display_mode(struct aa_ns *ns, struct aa_label *label, in display_mode() [all …]
|
D | apparmorfs.c | 408 loff_t *pos, struct aa_ns *ns) in policy_update() 438 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_load() 455 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_replace() 475 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_remove() 509 struct aa_ns *ns; 588 void __aa_bump_ns_revision(struct aa_ns *ns) in __aa_bump_ns_revision() 1341 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata() 1685 struct aa_ns *ns, *parent; in ns_mkdir_op() 1734 struct aa_ns *ns, *parent; in ns_rmdir_op() 1780 static void __aa_fs_list_remove_rawdata(struct aa_ns *ns) in __aa_fs_list_remove_rawdata() [all …]
|
D | procattr.c | 39 struct aa_ns *ns = labels_ns(label); in aa_getprocattr() 40 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
|
D | domain.c | 479 struct aa_ns *ns, struct list_head *list, in find_attach() 557 struct aa_ns *ns = profile->ns; in x_to_label()
|
D | policy_unpack.c | 158 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()
|
D | lsm.c | 841 struct aa_ns *ns = aa_get_current_ns(); in apparmor_socket_post_create()
|