/kernel/linux/linux-6.6/security/apparmor/ |
H A D | lib.c | 49 * aa_split_fqname - split a fqname into a profile and namespace name 50 * @fqname: a full qualified name in namespace profile format (NOT NULL) 59 * NOTE: may modify the @fqname string. The pointers returned point 60 * into the @fqname string. 62 char *aa_split_fqname(char *fqname, char **ns_name) in aa_split_fqname() argument 64 char *name = strim(fqname); in aa_split_fqname() 104 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, in aa_splitn_fqname() argument 107 const char *end = fqname + n; in aa_splitn_fqname() 108 const char *name = skipn_spaces(fqname, n); in aa_splitn_fqname() 465 /* base.name is a substring of fqname */ in aa_policy_init() [all...] |
H A D | domain.c | 1314 * @fqname: name of profile may include namespace (NOT NULL) 1325 int aa_change_profile(const char *fqname, int flags) in aa_change_profile() argument 1331 const char *auditname = fqname; /* retain leading & if stack */ in aa_change_profile() 1351 if (!fqname || !*fqname) { in aa_change_profile() 1371 if (*fqname == '&') { in aa_change_profile() 1374 fqname++; in aa_change_profile() 1376 target = aa_label_parse(label, fqname, GFP_KERNEL, true, false); in aa_change_profile() 1392 fqname, GFP_KERNEL); in aa_change_profile()
|
H A D | policy.c | 62 * An fqname is a name that may contain both namespace and profile hnames. 552 const char *fqname, size_t n) in aa_fqlookupn_profile() 559 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile() 568 profile = aa_lookupn_profile(ns, name, n - (name - fqname)); in aa_fqlookupn_profile() 1284 * @fqname: name of the profile or namespace to remove (NOT NULL) 1295 char *fqname, size_t size) in aa_remove_profiles() 1299 const char *name = fqname, *info = NULL; in aa_remove_profiles() 1303 if (*fqname == 0) { in aa_remove_profiles() 1309 if (fqname[0] == ':') { in aa_remove_profiles() 1312 name = aa_splitn_fqname(fqname, siz in aa_remove_profiles() 551 aa_fqlookupn_profile(struct aa_label *base, const char *fqname, size_t n) aa_fqlookupn_profile() argument 1294 aa_remove_profiles(struct aa_ns *policy_ns, struct aa_label *subj, char *fqname, size_t size) aa_remove_profiles() argument [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | lib.c | 29 * aa_split_fqname - split a fqname into a profile and namespace name 30 * @fqname: a full qualified name in namespace profile format (NOT NULL) 39 * NOTE: may modify the @fqname string. The pointers returned point 40 * into the @fqname string. 42 char *aa_split_fqname(char *fqname, char **ns_name) in aa_split_fqname() argument 44 char *name = strim(fqname); in aa_split_fqname() 83 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name, in aa_splitn_fqname() argument 86 const char *end = fqname + n; in aa_splitn_fqname() 87 const char *name = skipn_spaces(fqname, n); in aa_splitn_fqname() 506 /* base.name is a substring of fqname */ in aa_policy_init() [all...] |
H A D | policy.c | 62 * An fqname is a name that may contain both namespace and profile hnames. 458 const char *fqname, size_t n) in aa_fqlookupn_profile() 465 name = aa_splitn_fqname(fqname, n, &ns_name, &ns_len); in aa_fqlookupn_profile() 474 profile = aa_lookupn_profile(ns, name, n - (name - fqname)); in aa_fqlookupn_profile() 1085 * @fqname: name of the profile or namespace to remove (NOT NULL) 1096 char *fqname, size_t size) in aa_remove_profiles() 1100 const char *name = fqname, *info = NULL; in aa_remove_profiles() 1104 if (*fqname == 0) { in aa_remove_profiles() 1110 if (fqname[0] == ':') { in aa_remove_profiles() 1113 name = aa_splitn_fqname(fqname, siz in aa_remove_profiles() 457 aa_fqlookupn_profile(struct aa_label *base, const char *fqname, size_t n) aa_fqlookupn_profile() argument 1095 aa_remove_profiles(struct aa_ns *policy_ns, struct aa_label *subj, char *fqname, size_t size) aa_remove_profiles() argument [all...] |
H A D | domain.c | 1279 * @fqname: name of profile may include namespace (NOT NULL) 1291 int aa_change_profile(const char *fqname, int flags) in aa_change_profile() argument 1297 const char *auditname = fqname; /* retain leading & if stack */ in aa_change_profile() 1316 if (!fqname || !*fqname) { in aa_change_profile() 1336 if (*fqname == '&') { in aa_change_profile() 1339 fqname++; in aa_change_profile() 1341 target = aa_label_parse(label, fqname, GFP_KERNEL, true, false); in aa_change_profile() 1357 fqname, GFP_KERNEL); in aa_change_profile()
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
H A D | domain.h | 37 int aa_change_profile(const char *fqname, int flags);
|
H A D | policy.h | 189 const char *fqname, size_t n);
|
H A D | lib.h | 56 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
|
/kernel/linux/linux-6.6/security/apparmor/include/ |
H A D | domain.h | 31 int aa_change_profile(const char *fqname, int flags);
|
H A D | lib.h | 61 const char *aa_splitn_fqname(const char *fqname, size_t n, const char **ns_name,
|
H A D | policy.h | 248 const char *fqname, size_t n);
|