summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd
diff options
context:
space:
mode:
authorRobert Tonic <btonic@users.noreply.github.com>2019-09-19 17:10:50 -0400
committerRobert Tonic <btonic@users.noreply.github.com>2019-09-19 17:10:50 -0400
commit46beb919121f02d8bd110a54fb8f6de5dfd2891e (patch)
tree876f84d8883fc7cc57f12d43c99581b0537faa42 /runsc/cmd
parentac38a7ead0870118d27d570a8a98a90a7a225a12 (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')
-rw-r--r--runsc/cmd/gofer.go12
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)