From 618a2260a0e7fc172d1044f37ea42bd18e098f89 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 1 Feb 2023 13:21:59 +1300 Subject: [PATCH] Fix mode not being printed when debugging AF_UNIX socket rules. This was due to the values being defined in both af_unix and af_rule leaving the latter values unset. --- parser/af_unix.cc | 3 +-- parser/af_unix.h | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/parser/af_unix.cc b/parser/af_unix.cc index 3f1984369..db3aa08ca 100644 --- a/parser/af_unix.cc +++ b/parser/af_unix.cc @@ -111,8 +111,7 @@ unix_rule::unix_rule(unsigned int type_p, bool audit_p, bool denied): unix_rule::unix_rule(int mode_p, struct cond_entry *conds, struct cond_entry *peer_conds): - af_rule("unix"), addr(NULL), peer_addr(NULL), - audit(0), deny(0) + af_rule("unix"), addr(NULL), peer_addr(NULL) { move_conditionals(conds); move_peer_conditionals(peer_conds); diff --git a/parser/af_unix.h b/parser/af_unix.h index 763ed166b..2d2d70e1f 100644 --- a/parser/af_unix.h +++ b/parser/af_unix.h @@ -36,9 +36,6 @@ class unix_rule: public af_rule { public: char *addr; char *peer_addr; - int mode; - int audit; - bool deny; unix_rule(unsigned int type_p, bool audit_p, bool denied); unix_rule(int mode, struct cond_entry *conds,