/openbmc/linux/security/apparmor/include/ |
H A D | policy_ns.h | 58 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 …]
|
H A D | policy.h | 34 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, 374 struct aa_label *label, struct aa_ns *ns); 376 struct aa_label *label, struct aa_ns *ns); 378 struct aa_label *label, struct aa_ns *ns, 380 bool aa_current_policy_view_capable(struct aa_ns *ns); [all …]
|
H A 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()
|
H A 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,
|
H A D | cred.h | 163 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()
|
H A D | policy_unpack.h | 41 struct aa_ns; 104 struct aa_ns *ns;
|
/openbmc/linux/security/apparmor/ |
H A 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() 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 …]
|
H A D | policy.c | 406 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent() 555 struct aa_ns *ns; in aa_fqlookupn_profile() 791 struct aa_label *label, struct aa_ns *ns) in aa_policy_view_capable() 794 struct aa_ns *view_ns = labels_view(label); in aa_policy_view_capable() 811 struct aa_label *label, struct aa_ns *ns) in aa_policy_admin_capable() 824 bool aa_current_policy_view_capable(struct aa_ns *ns) in aa_current_policy_view_capable() 836 bool aa_current_policy_admin_capable(struct aa_ns *ns) in aa_current_policy_admin_capable() 858 struct aa_ns *ns, u32 mask) in aa_may_manage_policy() 973 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace() 1037 struct aa_ns *ns = NULL; in aa_replace_profiles() [all …]
|
H A D | label.c | 107 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 …]
|
H A D | apparmorfs.c | 518 struct aa_ns *ns; 1807 struct aa_ns *ns, *parent; in ns_mkdir_op() 1857 struct aa_ns *ns, *parent; in ns_rmdir_op() 1920 struct aa_ns *sub; in __aafs_ns_rmdir() 2029 struct aa_ns *sub; in __aafs_ns_mkdir() 2092 static struct aa_ns *__next_ns(struct aa_ns *root, struct aa_ns *ns) in __next_ns() 2094 struct aa_ns *parent, *next; in __next_ns() 2132 struct aa_ns *ns) in __first_profile() 2157 struct aa_ns *ns = p->ns; in __next_profile() 2244 struct aa_ns *ns = f->private; in p_next() [all …]
|
H A D | procattr.c | 32 struct aa_ns *ns = labels_ns(label); in aa_getprocattr() 33 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
|
H A D | domain.c | 385 struct aa_ns *ns, struct list_head *head, in find_attach() 569 struct aa_ns *ns = profile->ns; in x_to_label()
|
H A D | policy_unpack.c | 118 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()
|