Container env detection
Bug #2037435 reported by
Bartosz Woronicz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Security Guide |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Seems like the containerenv detection is not reliable on lxd container
Not sure how to find it for audit, but remediation script for fix looks for two following files>
Not of them is to be found on lxd container by default.
Yet, I found strange behaviour that if I create /run/.containerenv it is removed while running usg fix
# Remediation is applicable only in certain platforms
if [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; then
...
fi
then I got rule failing like on LXD container
Rule ID xccdf_org.
Result fail
To post a comment you must log in.
there are currently no support for lxd or requests for it.