Home
last modified time | relevance | path

Searched refs:aa_ns (Results 1 - 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/security/apparmor/include/
H A Dpolicy_ns.h35 /* struct aa_ns - namespace for a set of profiles
47 * An aa_ns defines the set profiles that are searched to determine which
48 * profile to attach to a task. Profiles can not be shared between aa_ns
58 struct aa_ns { struct
60 struct aa_ns *parent;
77 extern struct aa_ns *root_ns;
83 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns);
84 const char *aa_ns_name(struct aa_ns *parent, struct aa_ns *chil
[all...]
H A Dpolicy.h34 struct aa_ns;
133 struct aa_ns *ns;
185 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
187 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name);
190 struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name);
192 ssize_t aa_replace_profiles(struct aa_ns *view, struct aa_label *label,
194 ssize_t aa_remove_profiles(struct aa_ns *view, struct aa_label *label,
304 bool policy_view_capable(struct aa_ns *ns);
305 bool policy_admin_capable(struct aa_ns *ns);
306 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *n
[all...]
H 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,
118 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata);
H A Dlabel.h21 struct aa_ns;
222 struct aa_ns *__ns = labels_ns(L); \
276 void __aa_labelset_update_subtree(struct aa_ns *ns);
305 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp);
312 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,
314 int aa_label_asxprint(char **strp, struct aa_ns *ns, struct aa_label *label,
316 int aa_label_acntsxprint(char __counted **strp, struct aa_ns *ns,
318 void aa_label_xaudit(struct audit_buffer *ab, struct aa_ns *ns,
320 void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns,
322 void aa_label_xprintk(struct aa_ns *n
[all...]
H A Dpolicy_unpack.h37 struct aa_ns;
63 struct aa_ns *ns;
H A Dcred.h176 static inline struct aa_ns *aa_get_current_ns(void) in aa_get_current_ns()
179 struct aa_ns *ns; in aa_get_current_ns()
/kernel/linux/linux-6.6/security/apparmor/include/
H A Dpolicy_ns.h35 /* struct aa_ns - namespace for a set of profiles
47 * An aa_ns defines the set profiles that are searched to determine which
48 * profile to attach to a task. Profiles can not be shared between aa_ns
58 struct aa_ns { struct
60 struct aa_ns *parent;
78 extern struct aa_ns *root_ns;
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 *chil
[all...]
H A Dpolicy.h34 struct aa_ns;
202 struct aa_ns *ns;
244 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname,
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 *n
[all...]
H 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()
H 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 *n
[all...]
H 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()
H A Dpolicy_unpack.h41 struct aa_ns;
104 struct aa_ns *ns;
/kernel/linux/linux-5.10/security/apparmor/
H A Dpolicy_ns.c26 struct aa_ns *root_ns;
37 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible()
61 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name()
87 static struct aa_ns *alloc_ns(const char *prefix, const char *name) in alloc_ns()
89 struct aa_ns *ns; in alloc_ns()
137 void aa_free_ns(struct aa_ns *ns) in aa_free_ns()
162 struct aa_ns *aa_findn_ns(struct aa_ns *roo
[all...]
H A Dapparmorfs.c412 loff_t *pos, struct aa_ns *ns) in policy_update()
443 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_load()
460 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_replace()
480 struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); in profile_remove()
514 struct aa_ns *ns;
593 void __aa_bump_ns_revision(struct aa_ns *ns) in __aa_bump_ns_revision()
1429 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata()
1784 struct aa_ns *ns, *parent; in ns_mkdir_op()
1833 struct aa_ns *ns, *parent; in ns_rmdir_op()
1879 static void __aa_fs_list_remove_rawdata(struct aa_ns *n
[all...]
H A Dpolicy.c361 static struct aa_policy *__lookup_parent(struct aa_ns *ns, in __lookup_parent()
433 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
452 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile()
461 struct aa_ns *ns; in aa_fqlookupn_profile()
643 bool policy_view_capable(struct aa_ns *ns) in policy_view_capable()
646 struct aa_ns *view_ns = aa_get_current_ns(); in policy_view_capable()
663 bool policy_admin_capable(struct aa_ns *ns) in policy_admin_capable()
681 int aa_may_manage_policy(struct aa_label *label, struct aa_ns *ns, u32 mask) in aa_may_manage_policy()
797 static int __lookup_replace(struct aa_ns *ns, const char *hname, in __lookup_replace()
857 ssize_t aa_replace_profiles(struct aa_ns *policy_n
[all...]
H A Dlabel.c107 static int ns_cmp(struct aa_ns *a, struct aa_ns *b) in ns_cmp()
370 struct aa_ns *ns = labels_ns(label); in aa_label_kref()
1121 struct aa_ns *nsa = labels_ns(a); in labelset_of_merge()
1122 struct aa_ns *nsb = labels_ns(b); in labelset_of_merge()
1444 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1476 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1512 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint()
1514 struct aa_ns **prev_ns) in aa_profile_snxprint()
1553 static const char *label_modename(struct aa_ns *n
[all...]
H A Dprocattr.c35 struct aa_ns *ns = labels_ns(label); in aa_getprocattr()
36 struct aa_ns *current_ns = aa_get_current_ns(); in aa_getprocattr()
H A Ddomain.c387 struct aa_ns *ns, struct list_head *head, in find_attach()
562 struct aa_ns *ns = profile->ns; in x_to_label()
H A Dpolicy_unpack.c157 struct aa_ns *ns = aa_get_ns(d->ns); in do_loaddata_free()
/kernel/linux/linux-6.6/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()
173 struct aa_ns *aa_findn_ns(struct aa_ns *roo
[all...]
H A Dapparmorfs.c415 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()
1442 int __aa_fs_create_rawdata(struct aa_ns *ns, struct aa_loaddata *rawdata) in __aa_fs_create_rawdata()
1803 struct aa_ns *ns, *parent; in ns_mkdir_op()
1853 struct aa_ns *ns, *parent; in ns_rmdir_op()
1900 static void __aa_fs_list_remove_rawdata(struct aa_ns *n
[all...]
H A Dpolicy.c406 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()
527 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, in aa_lookupn_profile()
546 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *hname) in aa_lookup_profile()
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 *n
[all...]
H 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()
1444 bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp) in aa_update_label_name()
1476 static inline bool use_label_hname(struct aa_ns *ns, struct aa_label *label, in use_label_hname()
1512 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint()
1514 struct aa_ns **prev_ns) in aa_profile_snxprint()
1553 static const char *label_modename(struct aa_ns *n
[all...]
H 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()
H A Ddomain.c385 struct aa_ns *ns, struct list_head *head, in find_attach()
569 struct aa_ns *ns = profile->ns; in x_to_label()

Completed in 26 milliseconds

12