Description of problem: When running restorecon on /usr/sbin the files /usr/sbin/dumpe2fs and /usr/sbin/e2mmpstatus (which are hardlinks to each other) are fixed in an inconsitent way. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Have the package e2fsprogs installed 2. Run restorecon -v -R /usr/sbin 3. Actual results: [root@mybox selinux]# restorecon -v -R /usr Relabeled /usr/sbin/dumpe2fs from system_u:object_r:bin_t:s0 to system_u:object_r:fsadm_exec_t:s0 Relabeled /usr/sbin/e2mmpstatus from system_u:object_r:fsadm_exec_t:s0 to system_u:object_r:bin_t:s0 Expected results: These files gets fixed in a consistent way. Additional info: The files are actually hardlinks to each other and therefore must have the same SELinux label. ls -li /usr/sbin/dumpe2fs /usr/sbin/e2mmpstatus 1313471 -rwxr-xr-x. 2 root root 37312 Jan 31 19:08 /usr/sbin/dumpe2fs The file /etc/selinux/targeted/contexts/files/file_contexts contains the following /sbin/e2mmpstatus -- system_u:object_r:fsadm_exec_t:s0 /sbin/dumpe2fs -- system_u:object_r:fsadm_exec_t:s0 /usr/sbin/dumpe2fs -- system_u:object_r:fsadm_exec_t:s0 Missing is the definition for /usr/sbin/e2mmpstatus. 1313471 -rwxr-xr-x. 2 root root 37312 Jan 31 19:08 /usr/sbin/e2mmpstatus
*** Bug 1684785 has been marked as a duplicate of this bug. ***
commit 8bb6994251b09ee68d9695861b3b63fb60d45826 (HEAD -> f29) Author: Lukas Vrabec <lvrabec> Date: Mon Mar 4 13:47:58 2019 +0100 Label /usr/sbin/e2mmpstatus as fsadm_exec_t Resolves: rhbz#1684221
selinux-policy-3.14.2-51.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4cc36fafbb
selinux-policy-3.14.2-51.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4cc36fafbb
selinux-policy-3.14.2-51.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.