From 0c4c9e5f875e423db627ec5010cfeb1beb3fc113 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 19 Feb 2016 11:14:58 +0100 Subject: config: fix calculation of enabled syscalls Manager does not assume that empty syscalls list means that all syscalls are enabled. So fill it always. --- config/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config/config.go b/config/config.go index 073d34b41..a22b6ccff 100644 --- a/config/config.go +++ b/config/config.go @@ -113,10 +113,6 @@ func Parse(filename string) (*Config, map[int]bool, []*regexp.Regexp, error) { } func parseSyscalls(cfg *Config) (map[int]bool, error) { - if len(cfg.Enable_Syscalls) == 0 && len(cfg.Disable_Syscalls) == 0 { - return nil, nil - } - match := func(call *sys.Call, str string) bool { if str == call.CallName || str == call.Name { return true -- cgit mrf-deployment