Red Hat Bugzilla – Bug 825154
/usr/bin/rhts-backup and /usr/bin/rhts-restore doesn't preserve selinux context
Last modified: 2012-06-26 02:40:08 EDT
I am sorry if this bug is assigned to a wrong component.
Description of problem:
/usr/bin/rhts-backup and /usr/bin/rhts-restore detects selinux by presence of /selinux directory. This is not true on RHEL7 and therefore these functions doesn't backup the context. As the result, restored directories/files gets wrong context.
This has been already fixed in beakerlib (bug 800906) using
selinuxenabled && SELINUX=true || SELINUX=false
but we have several old tests that are still using these functions and it is hard to fix them all.
please fix ASAP, RHEL7 tier tests are failing on AVC denials and it is hard to review so many failing tests.
Version-Release number of selected component (if applicable):
Any progress on this?
Seems that there is no will to fix this simple but annoying bug.
Karel - target release for this fix is too far away, lets try to workaround using funny test as first task and force rewrite the backup/restore files.
Will try and pull this into 0.9.0 but need to verify this against all releases.
thanks! we are ready to help with testing; using "selinuxenabled" is low risk as it is used by beakerlib and TPS as standard way to detect SELinux state, also on older RHEL releases.
This is fixed in rhts-test-env-4.49-1 which is currently deployed on stage:
Beaker 0.9.0 has been released.