mirror of
https://github.com/aquasecurity/linux-bench.git
synced 2025-02-22 14:15:32 +01:00
Tidy test 2.2.2
Output was too long, with apt-cache policy there is less output and we only take the line of contains Installed info and the one before (package name)
This commit is contained in:
parent
9df881ae6f
commit
ad10ef18a5
1 changed files with 10 additions and 3 deletions
|
@ -2792,13 +2792,20 @@ groups:
|
|||
|
||||
zypper remove xorg-x11*
|
||||
- check:
|
||||
audit: "apt-cache show xserver-xorg* | grep Package"
|
||||
audit: "apt-cache policy xserver-xorg* | grep Installed -B1"
|
||||
use_multiple_values: true
|
||||
constraints:
|
||||
platform:
|
||||
- ubuntu18
|
||||
tests:
|
||||
tests:
|
||||
bin_op: or
|
||||
test_items:
|
||||
- flag: "Installed-Size:"
|
||||
- flag: "Installed"
|
||||
compare:
|
||||
op: eq
|
||||
value: "(none)"
|
||||
set: true
|
||||
- flag: "Installed"
|
||||
set: false
|
||||
remediation: |
|
||||
Remove the X Windows System packages using the appropriate package manager or manual installation:
|
||||
|
|
Loading…
Add table
Reference in a new issue