mirror of
https://github.com/aquasecurity/linux-bench.git
synced 2025-02-23 14:45:33 +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*
|
zypper remove xorg-x11*
|
||||||
- check:
|
- check:
|
||||||
audit: "apt-cache show xserver-xorg* | grep Package"
|
audit: "apt-cache policy xserver-xorg* | grep Installed -B1"
|
||||||
|
use_multiple_values: true
|
||||||
constraints:
|
constraints:
|
||||||
platform:
|
platform:
|
||||||
- ubuntu18
|
- ubuntu18
|
||||||
tests:
|
tests:
|
||||||
|
bin_op: or
|
||||||
test_items:
|
test_items:
|
||||||
- flag: "Installed-Size:"
|
- flag: "Installed"
|
||||||
|
compare:
|
||||||
|
op: eq
|
||||||
|
value: "(none)"
|
||||||
|
set: true
|
||||||
|
- flag: "Installed"
|
||||||
set: false
|
set: false
|
||||||
remediation: |
|
remediation: |
|
||||||
Remove the X Windows System packages using the appropriate package manager or manual installation:
|
Remove the X Windows System packages using the appropriate package manager or manual installation:
|
||||||
|
|
Loading…
Add table
Reference in a new issue