mirror of
https://github.com/aquasecurity/linux-bench.git
synced 2025-02-22 22:25:33 +01:00
commit
c2506e32d8
2 changed files with 2 additions and 2 deletions
2
utils.go
2
utils.go
|
@ -52,7 +52,7 @@ func GetBootLoader() (boot string, err error) {
|
|||
}
|
||||
|
||||
func GetSystemLogManager() (syslog string, err error) {
|
||||
out, err := exec.Command("bash", "-c", "sudo lsof | grep /var/log/syslog | cut -f1 -d' '").Output()
|
||||
out, err := exec.Command("bash", "-c", "sudo lsof +D /var/log | grep /var/log/syslog | cut -f1 -d' '").Output()
|
||||
if err != nil {
|
||||
out, err := exec.Command("bash", "-c", "service rsyslog status").Output()
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue