mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
parser: fix backport of MR700
The backport of 855dbd4a parser: fix rule downgrade for unix rules using the rule_t::warn_once which doesn't exist in the 2.x parser series. Switch this the the static function warn_once. 8b481b5f parser: fix rule downgrade for unix rules Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
8b481b5fd0
commit
2baa01bd00
@ -215,7 +215,7 @@ void unix_rule::downgrade_rule(Profile &prof) {
|
|||||||
* allowed by the profile.
|
* allowed by the profile.
|
||||||
*/
|
*/
|
||||||
if (warnflags & WARN_RULE_NOT_ENFORCED)
|
if (warnflags & WARN_RULE_NOT_ENFORCED)
|
||||||
rule_t::warn_once(prof.name, "deny unix socket rule not enforced, can't be downgraded to generic network rule\n");
|
warn_once(prof.name, "deny unix socket rule not enforced, can't be downgraded to generic network rule\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user