Fix sandbox rule evaluation from policy file bug after fw-daemon start

shw-merge
dma 7 years ago
parent 972f733b63
commit 7c657b9f53

@ -98,7 +98,7 @@ func (r *Rule) AddrString(redact bool) string {
type RuleList []*Rule 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 { 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 return false
} }
if r.proto != proto { if r.proto != proto {

Loading…
Cancel
Save