mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
parser: add an abi <default> that is equivalent to not specifying an abi
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
4476eb8288
commit
c9c29f02b1
@ -1782,6 +1782,11 @@ static int abi_features_base(struct aa_features **features, char *filename, bool
|
||||
if (search) {
|
||||
if (strcmp(filename, "kernel") == 0)
|
||||
return aa_features_new_from_kernel(features);
|
||||
else if (strcmp(filename, "default") == 0) {
|
||||
return aa_features_new_from_string(features,
|
||||
default_features_abi,
|
||||
strlen(default_features_abi));
|
||||
}
|
||||
f = search_path(filename, &fullpath, &cached);
|
||||
PDEBUG("abi lookup '%s' -> '%s' f %p cached %d\n", filename, fullpath, f, cached);
|
||||
if (!f && cached) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user