[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


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 Sun Jul 12 22:38:08 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.