aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2016-02-19 11:14:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2016-02-19 11:14:58 +0100
commit0c4c9e5f875e423db627ec5010cfeb1beb3fc113 (patch)
tree339844448c4c73ad567cb6a61d90ff882b971007
parentb34d670722191c03f529fc943f006f6e2e8884fe (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.go4
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