2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Fix problem where named execute transitions were not being applied, for hats

and local profiles.  bnc#446574
This commit is contained in:
John Johansen
2008-11-19 14:00:06 +00:00
parent 6cfcb1a823
commit 77eb67b5a0

View File

@@ -902,6 +902,7 @@ hat: hat_start TOK_ID flags TOK_OPEN rules TOK_CLOSE
cod->flags.hat = 1;
if (force_complain)
cod->flags = force_complain_flags;
post_process_nt_entries(cod);
PDEBUG("^%s: flags='%s%s'\n",
$2,
cod->flags.complain ? "complain, " : "",
@@ -1142,6 +1143,7 @@ struct codomain *do_local_profile(struct codomain *cod, char *name, int mode,
cod->name = name;
if (force_complain)
cod->flags = force_complain_flags;
post_process_nt_entries(cod);
PDEBUG("profile %s: flags='%s%s'\n",
name,
cod->flags.complain ? "complain, " : "",