mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 08:45:22 +00:00
When loading without the 2.4 compatibility patch, the parser needs the
following patch or it will explode when it can't find the "features" file. Bug: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/626984 Nominated-by: Kees Cook <kees@ubuntu.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
@@ -922,6 +922,15 @@ static void setup_flags(void)
|
||||
get_match_string();
|
||||
/* Get kernel features string */
|
||||
get_flags_string(&flags_string, FLAGS_FILE);
|
||||
/* Gracefully handle AppArmor kernel without compatibility patch */
|
||||
if (!flags_string) {
|
||||
PERROR("Cache read/write disabled: %s interface file missing. "
|
||||
"(Kernel needs AppArmor 2.4 compatibility patch.)\n",
|
||||
FLAGS_FILE);
|
||||
write_cache = 0;
|
||||
skip_read_cache = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Deal with cache directory versioning:
|
||||
|
Reference in New Issue
Block a user