Bug 1371025 - manpage of is_selinux_mls_enabled is misleading
Summary: manpage of is_selinux_mls_enabled is misleading
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libselinux
Version: 6.8
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Petr Lautrbach
QA Contact: Jan Zarsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-29 07:58 UTC by Jan Zarsky
Modified: 2016-10-27 06:47 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1168591
Environment:
Last Closed: 2016-10-17 09:24:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.