Open jan-cerny opened 2 weeks ago
Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all
This datastream diff is auto generated by the check Compare DS/Generate Diff
Code Climate has analyzed commit 6a30452f and detected 0 issues on this pull request.
The test coverage on the diff in this pull request is 100.0% (50% is the threshold).
This pull request will bring the total coverage in the repository to 60.9% (0.0% change).
View more on Code Climate.
I think this won't cover all situations. In bootable containers, for "system" users it's strongly recommended to use systemd DynamicUser=yes where possible. See https://containers.github.io/bootc/building/users-and-groups.html#using-dynamicuseryes-for-systemd-units. This isn't covered by our OVAL.
Description:
/sysroot
from scanning/usr/lib/group
For more details, please read commit messages of all commits.
Rationale:
In systems based on bootable container images the
/sysroot
directory contains the filesystem of the image which should be excluded from the scanned files check.If the
nss-altfiles
are installed and/etc/nsswitch.conf
is configured to usenss-altfiles
, the users group can be defined also in/usr/lib/group
next to/etc/group
. The/usr/lib/group
is a valid source of group definitions and therefore needs to be consulted during the check if nsswitch is configured to use this file. Thenss-altfiles
is often used in bootable containers base images.Review Hints:
Build CS9 data stream and apply STIG profile in podman build of an image based on quay.io/centos-bootc/centos-bootc:stream9.