mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
The upstream 2.6.36 version of apparmor is missing the match file,
so the parser doesn't set matching options correctly. Set minimal defaults with that will allow the parser to load policy, on 2.6.36 kernels.
This commit is contained in:
@@ -593,7 +593,7 @@ static void get_match_string(void) {
|
||||
|
||||
ms = fopen(MATCH_STRING, "r");
|
||||
if (!ms)
|
||||
return;
|
||||
goto out;
|
||||
|
||||
match_string = malloc(1000);
|
||||
if (!match_string) {
|
||||
@@ -612,6 +612,12 @@ out:
|
||||
|
||||
if (strstr(match_string, " perms=c"))
|
||||
perms_create = 1;
|
||||
} else {
|
||||
/* no match string default to 2.6.36 version which doesn't
|
||||
* have a match string
|
||||
*/
|
||||
regex_type = AARE_DFA;
|
||||
perms_create = 1;
|
||||
}
|
||||
|
||||
if (ms)
|
||||
|
Reference in New Issue
Block a user