From d425f455bb421541a9df791ea75bcfcd38fd0ff8 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 19 Aug 2019 19:03:59 +0000 Subject: [PATCH] Make variable names more toml-friendly --- config/config.go | 8 ++++---- pew.go | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/config.go b/config/config.go index 442a2cf..f473530 100644 --- a/config/config.go +++ b/config/config.go @@ -110,15 +110,15 @@ type Artifact struct { SupportedKernels []KernelMask Qemu struct { - CPUs int + Cpus int Memory int Timeout Duration } Mitigations struct { - DisableSMEP bool - DisableSMAP bool - DisableKASLR bool + DisableSmep bool + DisableSmap bool + DisableKaslr bool } } diff --git a/pew.go b/pew.go index dc76a37..1307126 100644 --- a/pew.go +++ b/pew.go @@ -307,16 +307,16 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact, if ka.Qemu.Timeout.Duration != 0 { q.Timeout = ka.Qemu.Timeout.Duration } - if ka.Qemu.CPUs != 0 { - q.Cpus = ka.Qemu.CPUs + if ka.Qemu.Cpus != 0 { + q.Cpus = ka.Qemu.Cpus } if ka.Qemu.Memory != 0 { q.Memory = ka.Qemu.Memory } - q.SetKASLR(!ka.Mitigations.DisableKASLR) - q.SetSMEP(!ka.Mitigations.DisableSMEP) - q.SetSMAP(!ka.Mitigations.DisableSMAP) + q.SetKASLR(!ka.Mitigations.DisableKaslr) + q.SetSMEP(!ka.Mitigations.DisableSmep) + q.SetSMAP(!ka.Mitigations.DisableSmap) err = q.Start() if err != nil {