Bug 1371025

Summary: manpage of is_selinux_mls_enabled is misleading
Product: Red Hat Enterprise Linux 6 Reporter: Jan Zarsky <jzarsky>
Component: libselinuxAssignee: Petr Lautrbach <plautrba>
Status: CLOSED WONTFIX QA Contact: Jan Zarsky <jzarsky>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8CC: arubin, dapospis, dking, jkurik, jzarsky, ksrot, lmiksik, lvrabec, mgrepl, mmalik, mvadkert, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1168591 Environment:
Last Closed: 2016-10-17 09:24:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Zarsky 2016-08-29 07:58:26 UTC
+++ This bug was initially created as a clone of Bug #1168591 +++

Description of problem:
According to the man page of is_selinux_mls_enabled:

is_selinux_mls_enabled() returns 1 if SELinux is running in MLS mode or 0 if it is not.

Which is misleading because is_selinux_mls_enabled() returns whether the system is CAPABLE of running in MLS mode, not whether it is running in MLS mode right now.

Version-Release number of selected component (if applicable):
libselinux-2.2.2-6.el7

How reproducible:
100%

Steps to Reproduce:
1. man is_selinux_mls_enabled