Bug 1581848

Summary: seinfo -b does not handle old boolean names defined in /etc/selinux/*/booleans.subs_dist
Product: Red Hat Enterprise Linux 8 Reporter: Dalibor Pospíšil <dapospis>
Component: setoolsAssignee: Vit Mojzis <vmojzis>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: lvrabec, mmalik, plautrba, vmojzis
Target Milestone: rcKeywords: Regression, Triaged
Target Release: 8.2Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:00:12 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:
Embargoed:
Bug Depends On: 1682508    
Bug Blocks:    

Description Dalibor Pospíšil 2018-05-23 18:55:44 UTC
Description of problem:
seinfo -b does not handle old boolean names defined in /etc/selinux/*/booleans.subs_dist

This is a regression against rhel7.

Version-Release number of selected component (if applicable):
setools-console-4.1.1-5.el8+5

How reproducible:
100%

Actual results:
# seinfo -b$(head -n 1 /etc/selinux/targeted/booleans.subs_dist | cut -d ' ' -f 2) -x

Booleans: 1
   bool auditadm_exec_content true;
# seinfo -b$(head -n 1 /etc/selinux/targeted/booleans.subs_dist | cut -d ' ' -f 1) -x

Booleans: 0


Expected results:
# seinfo -b$(head -n 1 /etc/selinux/targeted/booleans.subs_dist | cut -d ' ' -f 2) -x

Booleans: 1
   bool auditadm_exec_content true;
# seinfo -b$(head -n 1 /etc/selinux/targeted/booleans.subs_dist | cut -d ' ' -f 1) -x

Booleans: 1
   bool auditadm_exec_content true;

Comment 1 Milos Malik 2018-05-24 07:19:05 UTC
# rpm -qa setools\*
setools-console-4.1.1-5.el8+5.x86_64
# find /etc/selinux/ -name \*boolean\*
/etc/selinux/targeted/booleans.subs_dist
# grep antivirus /etc/selinux/targeted/booleans.subs_dist 
clamd_use_jit antivirus_use_jit
amavis_use_jit antivirus_use_jit
# sesearch -b antivirus_use_jit -A
allow antivirus_t antivirus_t:process execmem; [ antivirus_use_jit ]:True
allow antivirus_t antivirus_t:process execmem; [ antivirus_use_jit ]:True
# sesearch -b clamd_use_jit -A
<built-in function new_qpol_bool_t> returned a result with an error set
#

Comment 2 Milos Malik 2018-06-27 07:46:40 UTC
Please ignore comment#1, the problem is reported as a different bug:
 * https://bugzilla.redhat.com/show_bug.cgi?id=1595572

Comment 15 errata-xmlrpc 2020-11-04 02:00:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (setools bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4544