Check repoquery with sudo nopasswd in deep scan mode on RedHat (#492)

This commit is contained in:
Kota Kanbe
2017-09-14 09:14:20 -07:00
committed by GitHub
parent 820831fa5d
commit 5f2183fc8e
3 changed files with 8 additions and 4 deletions

View File

@@ -153,6 +153,10 @@ func (o *redhat) checkIfSudoNoPasswd() error {
{"yum --color=never --security updateinfo updates", zero},
}
}
if o.Distro.Family == config.RedHat {
cmds = append(cmds, cmd{"repoquery -h", zero})
}
}
for _, c := range cmds {