Lines Matching refs:name
28 * inherit - special name to indicate profile inheritance
35 * a // in a profile or namespace name indicates a hierarchical name with the
36 * name before the // being the parent and the name after the child.
55 * eg. /bin/bash///bin/ls as a name would indicate /bin/ls was started
58 * A profile or namespace name that can contain one or more // separators
62 * An fqname is a name that may contain both namespace and profile hnames.
252 * @hname: name of the profile (NOT NULL)
298 * __strn_find_child - find a profile on @head list using substring of @name
300 * @name: name of profile (NOT NULL)
301 * @len: length of @name substring to match
308 const char *name, int len)
310 return (struct aa_profile *)__policy_strn_find(head, name, len);
314 * __find_child - find a profile on @head list with a name matching @name
316 * @name: name of profile (NOT NULL)
322 static struct aa_profile *__find_child(struct list_head *head, const char *name)
324 return __strn_find_child(head, name, strlen(name));
328 * aa_find_child - find a profile by @name in @parent
330 * @name: profile name to search for (NOT NULL)
334 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name)
340 profile = __find_child(&parent->base.profiles, name);
349 * __lookup_parent - lookup the parent of a profile of name @hname
351 * @hname: hierarchical profile name to find parent of (NOT NULL)
353 * Lookups up the parent of a fully qualified profile name, the profile
386 * @base: base list to start looking up profile name from (NOT NULL)
387 * @hname: hierarchical profile name (NOT NULL)
394 * Do a relative name lookup, recursing through profile tree.
426 * aa_lookup_profile - find a profile by its full or partial name
428 * @hname: name to do lookup on. Does not contain namespace prefix (NOT NULL)
462 const char *name, *ns_name;
465 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len);
473 if (name)
474 profile = aa_lookupn_profile(ns, name, n - (name - fqname));
489 * @base: name to base the null profile off of
493 * name of the profile is unique and follows the format of parent//null-XXX.
494 * where XXX is based on the @name or if that fails or is not supplied
508 char *name = NULL;
513 name = kmalloc(strlen(parent->base.hname) + 8 + strlen(base),
515 if (name) {
516 sprintf(name, "%s//null-%s", parent->base.hname, base);
517 goto name;
522 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, gfp);
523 if (!name)
525 sprintf(name, "%s//null-%x", parent->base.hname,
528 name:
530 bname = basename(name);
535 profile = aa_alloc_profile(name, NULL, gfp);
563 kfree(name);
568 kfree(name);
611 * @ns_name: name of namespace being manipulated
612 * @name: name of profile being manipulated (NOT NULL)
619 const char *ns_name, const char *name,
625 aad(&sa)->name = name;
753 p = __find_child(&new->base.profiles, child->base.name);
790 * @hname - name of profile to lookup
818 new->base.name = old->base.name;
1085 * @fqname: name of the profile or namespace to remove (NOT NULL)
1086 * @size: size of the name
1100 const char *name = fqname, *info = NULL;
1113 name = aa_splitn_fqname(fqname, size, &ns_name, &ns_len);
1126 if (!name) {
1135 profile = aa_get_profile(__lookup_profile(&ns->base, name));
1141 name = profile->base.hname;
1149 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info,
1160 (void) audit_policy(subj, OP_PROF_RM, ns_name, name, info,