Description of problem: Using latest rawhide, 20160112, when I switch the system to mls and log in (via a normal user account) as root, I can see the correct sestatus output, even with sysadm_secadm disabled: [root/sysadm_r/SystemLow@localhost ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: mls Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: denied Max kernel policy version: 30 however logging out of the 'su' that made me root, [user/sysadm_r/SystemLow@localhost ~]$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: error (Permission denied) Policy MLS status: enabled Policy deny_unknown status: denied Max kernel policy version: 30 No AVCs or any other audit messages in the log (with auditd enabled & working, dontaudit rules disabled). Please, at least print 'error' or 'unknown' as policy name if it cannot be determined, *do not* simply default to "targeted" on error. Version-Release number of selected component (if applicable): selinux-policy-devel-3.13.1-165.fc24.noarch selinux-policy-mls-3.13.1-165.fc24.noarch selinux-policy-3.13.1-165.fc24.noarch selinux-policy-targeted-3.13.1-165.fc24.noarch How reproducible: always Actual results: sestatus as user shows 'targeted' even though the system is in 'mls' Expected results: sestatus as user shows 'mls' or an error message if unknown Additional info:
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle. Changing version to '24'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase
This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.
This seems to be fixed on the latest update of F27, [root/sysadm_r/SystemLow@cc-v9b ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: mls Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: denied Memory protection checking: actual (secure) Max kernel policy version: 31 [root/sysadm_r/SystemLow@cc-v9b ~]# logout [eal/sysadm_r/SystemLow@cc-v9b home]$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: mls Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: denied Memory protection checking: actual (secure) Max kernel policy version: 31 [eal/sysadm_r/SystemLow@cc-v9b home]$ logout [eal/staff_r/SystemLow@cc-v9b ~]$ sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: mls Current mode: enforcing Mode from config file: enforcing Policy MLS status: enabled Policy deny_unknown status: denied Memory protection checking: actual (secure) Max kernel policy version: 31