CIS compliance scans fail on container hosts with "Ensure no unowned files or directories exist"
Issue
- When running security scanning software that checks CIS compliance on Red Hat Enterprise Linux hosts running container tooling such as
dockerorpodman, security scans may fail with:
Ensure no unowned files or directories exist
- The directories and files explicitly listed as problematic by the above rule are part of container filesystems or images, notably within the
graphRootpaths on the host.- For root users, this is usually
/var/lib/dockeror/var/lib/containersby default. - For rootless users, this is usually
$HOME/.local/containersby default.
- For root users, this is usually
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.