diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-02 22:15:41 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-02 22:15:41 +0000 |
commit | e2599d556573b05eb3714c1e791fa29431dc3d3f (patch) | |
tree | dd3136017286ad911c8f14fdc832e9d4e7e4500d /runsc/cmd | |
parent | 7694b64e0c59d51cfcab119c45a32e386f857c6a (diff) | |
parent | b8a5420f49a2afd622ec08b5019e1bf537f7da82 (diff) |
Merge release-20210208.0-109-gb8a5420f4 (automated)
Diffstat (limited to 'runsc/cmd')
-rw-r--r-- | runsc/cmd/mitigate.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/runsc/cmd/mitigate.go b/runsc/cmd/mitigate.go index 9052f091d..822af1917 100644 --- a/runsc/cmd/mitigate.go +++ b/runsc/cmd/mitigate.go @@ -16,7 +16,6 @@ package cmd import ( "context" - "io/ioutil" "github.com/google/subcommands" "gvisor.dev/gvisor/pkg/log" @@ -56,14 +55,7 @@ func (m *Mitigate) Execute(_ context.Context, f *flag.FlagSet, args ...interface return subcommands.ExitUsageError } - const path = "/proc/cpuinfo" - data, err := ioutil.ReadFile(path) - if err != nil { - log.Warningf("Failed to read %s: %v", path, err) - return subcommands.ExitFailure - } - - if err := m.mitigate.Execute(data); err != nil { + if err := m.mitigate.Execute(); err != nil { log.Warningf("Execute failed: %v", err) return subcommands.ExitFailure } |