diff options
author | Robert Tonic <btonic@users.noreply.github.com> | 2019-09-19 17:10:50 -0400 |
---|---|---|
committer | Robert Tonic <btonic@users.noreply.github.com> | 2019-09-19 17:10:50 -0400 |
commit | 46beb919121f02d8bd110a54fb8f6de5dfd2891e (patch) | |
tree | 876f84d8883fc7cc57f12d43c99581b0537faa42 /runsc/cmd/gofer.go | |
parent | ac38a7ead0870118d27d570a8a98a90a7a225a12 (diff) |
Fix documentation, clean up seccomp filter installation, rename helpers.
Filter installation has been streamlined and functions renamed.
Documentation has been fixed to be standards compliant, and missing
documentation added. gofmt has also been applied to modified files.
Diffstat (limited to 'runsc/cmd/gofer.go')
-rw-r--r-- | runsc/cmd/gofer.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go index 8e63c80e0..fa4f0034d 100644 --- a/runsc/cmd/gofer.go +++ b/runsc/cmd/gofer.go @@ -204,13 +204,11 @@ func (g *Gofer) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) } if g.hostUDSAllowed { - if err := filter.InstallUDS(); err != nil { - Fatalf("installing UDS seccomp filters: %v", err) - } - } else { - if err := filter.Install(); err != nil { - Fatalf("installing seccomp filters: %v", err) - } + filter.InstallUDSFilters() + } + + if err := filter.Install(); err != nil { + Fatalf("installing seccomp filters: %v", err) } runServers(ats, g.ioFDs) |