Searched refs:prefix (Results 1 - 2 of 2) sorted by relevance

/security/apparmor/
H A Dpolicy.c121 * @prefix: prefix name if any is required. (MAYBE NULL)
128 static bool policy_init(struct aa_policy *policy, const char *prefix, argument
132 if (prefix) {
133 policy->hname = kmalloc(strlen(prefix) + strlen(name) + 3,
136 sprintf(policy->hname, "%s//%s", prefix, name);
257 * thus the curr ns.hname is a prefix of its name.
259 * Add + 2 to skip over // separating curr hname prefix
269 * @prefix: parent namespace name (MAYBE NULL)
274 static struct aa_namespace *alloc_namespace(const char *prefix, argument
[all...]
/security/selinux/
H A Dhooks.c1073 char *prefix; local
1085 prefix = CONTEXT_STR;
1088 prefix = FSCONTEXT_STR;
1091 prefix = ROOTCONTEXT_STR;
1094 prefix = DEFCONTEXT_STR;
1106 seq_puts(m, prefix);
2480 static inline int match_prefix(char *prefix, int plen, char *option, int olen) argument
2485 return !memcmp(prefix, option, plen);

Completed in 75 milliseconds