mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 06:45:10 +01:00
fix(aa-log): grep journal logs over apparmor instead of AVC for wider compatibility.
This commit is contained in:
parent
dfdf50a3d3
commit
9c0f4dd6a7
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ func GetJournalctlLogs(path string, useFile bool) (io.Reader, error) {
|
|||
}
|
||||
scanner = bufio.NewScanner(file)
|
||||
} else {
|
||||
// journalctl -b -o json --grep=AVC --output-fields=MESSAGE > systemd.log
|
||||
cmd := exec.Command("journalctl", "--boot", "--grep=AVC", "--output=json", "--output-fields=MESSAGE")
|
||||
// journalctl -b -o json --grep=apparmor --output-fields=MESSAGE > systemd.log
|
||||
cmd := exec.Command("journalctl", "--boot", "--grep=apparmor", "--output=json", "--output-fields=MESSAGE")
|
||||
cmd.Stdout = &stdout
|
||||
if err := cmd.Run(); err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in a new issue