[MODULES-7322] selboolean reports error if selinux is not enabled Created: 2014/03/04  Updated: 2018/06/18

Status: Accepted
Project: Modules
Component/s: selinux_core
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Normal
Reporter: redmine.exporter Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: help_wanted, linux, redmine, selboolean, selinux, type_and_provider
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template: MODULES Bug Template
Team: Platform OS

 Description   

If an selboolean is defined for a class, but is executing on a host that does not have SELinux enabled, an error is reported. e.g.:

Execution of '/usr/sbin/getsebool httpd_can_network_connect' returned 1: /usr/sbin/getsebool: SELinux is disabled

It should not be considered a failure, but perhaps a warning if you try to set/get an SELinux boolean on a host that does not have selinux enabled.

Before setting/getting the boolean, a quick call to getenforce could be made, and a warning issued if it returns "Disabled".


Generated at Wed Aug 21 00:05:09 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.