2
0
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:
John Johansen
2010-08-26 10:36:45 -07:00
parent 046e1fb215
commit 1f1a303457

View File

@@ -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)