-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-8.3.0
-
rhel-sst-security-selinux
-
ssg_security
-
None
-
False
-
-
None
-
None
-
None
-
None
-
If docs needed, set a value
-
-
All
-
None
Description of problem:
fixfiles can do a number of operations, including deleting content in /tmp and relabeling files in /var/tmp.
Unfortunately the tool is not polyinstantiation aware, which causes issues when used in that context:
- /tmp-inst (or similar, as configured in /etc/security/namespace.conf) is not cleaned up
fullrelabel()
{ echo "Cleaning out /tmp" find /tmp/ -mindepth 1 -delete restore Relabel }- /var/tmp/tmp-inst (or similar) is not relabeled properly
find /var/tmp ( -context ":${UNLABELED}" -o -context ":${UNDEFINED}" ) -exec chcon --no-dereference --reference /var/tmp {} \;
Please implement this functionality. Note that the target directories (/tmp-inst and /var/tmp/tmp-inst) are to be read from /etc/security/namespace.conf (and /etc/security/namespace.d/*) and not hardcoded.
Version-Release number of selected component (if applicable):
policycoreutils-2.9-9.el8.x86_64
- external trackers