• Home
  • Raw
  • Download

Lines Matching full:view

34  * aa_ns_visible - test if @view is visible from @curr
36 * @view: namespace to test if visible from @curr (NOT NULL)
37 * @subns: whether view of a subns is allowed
39 * Returns: true if @view is visible from @curr else false
41 bool aa_ns_visible(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_visible() argument
43 if (curr == view) in aa_ns_visible()
49 for ( ; view; view = view->parent) { in aa_ns_visible()
50 if (view->parent == curr) in aa_ns_visible()
58 * aa_na_name - Find the ns name to display for @view from @curr
60 * @view - namespace attempting to view (NOT NULL)
63 * Returns: name of @view visible from @curr
65 const char *aa_ns_name(struct aa_ns *curr, struct aa_ns *view, bool subns) in aa_ns_name() argument
67 /* if view == curr then the namespace name isn't displayed */ in aa_ns_name()
68 if (curr == view) in aa_ns_name()
71 if (aa_ns_visible(curr, view, subns)) { in aa_ns_name()
72 /* at this point if a ns is visible it is in a view ns in aa_ns_name()
78 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name()
204 struct aa_ns *__aa_lookupn_ns(struct aa_ns *view, const char *hname, size_t n) in __aa_lookupn_ns() argument
206 struct aa_ns *ns = view; in __aa_lookupn_ns()
225 * aa_lookupn_ns - look up a policy namespace relative to @view
226 * @view: namespace to search in (NOT NULL)
235 struct aa_ns *aa_lookupn_ns(struct aa_ns *view, const char *name, size_t n) in aa_lookupn_ns() argument
240 ns = aa_get_ns(__aa_lookupn_ns(view, name, n)); in aa_lookupn_ns()