From 2baa01bd004091739cd77d9c3eefd2bc8c63af22 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sun, 14 Mar 2021 08:59:34 -0700 Subject: [PATCH] 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 --- parser/af_unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/af_unix.cc b/parser/af_unix.cc index d1b1ea092..47d146691 100644 --- a/parser/af_unix.cc +++ b/parser/af_unix.cc @@ -215,7 +215,7 @@ void unix_rule::downgrade_rule(Profile &prof) { * allowed by the profile. */ 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"); } }