From 7c657b9f53b2fbd68fb63e33fd5b0b16deeb39d8 Mon Sep 17 00:00:00 2001 From: dma Date: Sun, 24 Sep 2017 23:07:17 +0000 Subject: [PATCH] Fix sandbox rule evaluation from policy file bug after fw-daemon start --- sgfw/rules.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgfw/rules.go b/sgfw/rules.go index 9c4c735..adeb3f7 100644 --- a/sgfw/rules.go +++ b/sgfw/rules.go @@ -98,7 +98,7 @@ func (r *Rule) AddrString(redact bool) string { type RuleList []*Rule func (r *Rule) match(src net.IP, dst net.IP, dstPort uint16, hostname string, proto string, uid, gid int, uname, gname string, sandbox string) bool { - if r.sandbox != sandbox { + if r.policy.sandbox != sandbox { return false } if r.proto != proto {