Bug 917994

Summary: seinfo --constrain doesn't print constrains in correct format
Product: Red Hat Enterprise Linux 7 Reporter: Michal Trunecka <mtruneck>
Component: setoolsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED WONTFIX QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: ebenes, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 966492 (view as bug list) Environment:
Last Closed: 2015-12-08 15:27:37 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:    
Bug Blocks: 966492    

Description Michal Trunecka 2013-03-05 09:20:03 UTC
Description of problem:
Constrains printed by seinfo --constrain are not in correct format, e.g.:

mlsconstrain { db_column } { create relabelto  } 
(  h1 h2  dom  l2 h2  ==  && );

It seems the expressions are printed in some kind of postfix notation, but without parenthesis. 


Version-Release number of selected component (if applicable):
setools-console-3.3.7-4.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. seinfo --constrain

Comment 1 Milos Malik 2013-03-05 10:48:15 UTC
RHEL-7 version is setools-console-3.3.7-34.el7.x86_64.

Comment 2 Michal Trunecka 2013-05-23 11:11:18 UTC
The booleans expression in sesearch output suffers with the same problem. e.g.:

# sesearch -b ftp_home_dir --allow -C
...
DT allow ftpd_t autofs_t : dir { getattr search open } ; [ ftp_home_dir use_nfs_home_dirs && ]
...

Still the same version:
setools-console-3.3.7-34.el7.x86_64

Comment 3 Daniel Walsh 2013-05-23 14:00:07 UTC
Well this is not likely something we will spend time on fixing, if upstream fixed it we would take it.

Comment 4 RHEL Program Management 2014-03-22 06:59:47 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.