diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-02-19 11:14:58 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-02-19 11:14:58 +0100 |
| commit | 0c4c9e5f875e423db627ec5010cfeb1beb3fc113 (patch) | |
| tree | 339844448c4c73ad567cb6a61d90ff882b971007 | |
| parent | b34d670722191c03f529fc943f006f6e2e8884fe (diff) | |
config: fix calculation of enabled syscalls
Manager does not assume that empty syscalls list means
that all syscalls are enabled. So fill it always.
| -rw-r--r-- | config/config.go | 4 |
1 files changed, 0 insertions, 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 |
