Home
last modified time | relevance | path

Searched refs:view (Results 1 – 5 of 5) sorted by relevance

/security/apparmor/
Dpolicy_ns.c37 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible() argument
39 if (curr == view) in aa_ns_visible()
45 for ( ; view; view = view->parent) { in aa_ns_visible()
46 if (view->parent == curr) in aa_ns_visible()
61 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name() argument
64 if (curr == view) in aa_ns_name()
67 if (aa_ns_visible(curr, view, subns)) { in aa_ns_name()
74 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name()
200 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() argument
202 struct aa_ns *ns = view; in __aa_lookupn_ns()
[all …]
Dlabel.c1484 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint() argument
1493 if (!view) in aa_profile_snxprint()
1494 view = profiles_ns(profile); in aa_profile_snxprint()
1496 if (view != profile->ns && in aa_profile_snxprint()
1500 ns_name = aa_ns_name(view, profile->ns, in aa_profile_snxprint()
/security/apparmor/include/
Dpolicy_ns.h83 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns);
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);
159 static inline struct aa_ns *aa_lookup_ns(struct aa_ns *view, const char *name) in aa_lookup_ns() argument
161 return aa_lookupn_ns(view, name, strlen(name)); in aa_lookup_ns()
Dpolicy.h192 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,
Dlabel.h310 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view,