Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 649711

Summary: RFE: if error happens sesearch returns an exit code > 0
Product: Red Hat Enterprise Linux 5 Reporter: Milos Malik <mmalik>
Component: setoolsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED WONTFIX QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: low    
Version: 5.6Keywords: FutureFeature
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 649699 Environment:
Last Closed: 2012-10-25 07:02:36 UTC Type: ---
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: 649699    
Bug Blocks:    

Description Milos Malik 2010-11-04 11:43:47 UTC
Description of problem:


Version-Release number of selected component (if applicable):
setools-3.0-3.el5

How reproducible:
always

Steps to Reproduce:
# sesearch -s restorecon_t -t inotifyfs_t -c dir --allow
Found 1 semantic av rules:
   allow setfiles_t filesystem_type : dir { ioctl read getattr lock search open } ; 

# echo $?
0
# sesearch -s restorecon -t inotifyfs_t -c dir --allow
ERROR: could not find datum for type restorecon

# echo $?
0


Actual results:
sesearch returns exit code = 0

Expected results:
sesearch returns exit code > 0

Comment 1 RHEL Program Management 2010-11-04 11:57:11 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 2 Daniel Walsh 2010-11-04 17:07:20 UTC
We will probably not fix this in RHEL5, since setools is not on the approved list but this is also broken in Rawhide and RHEL6. and I think we should move the bug there.

Comment 5 RHEL Program Management 2012-10-10 11:51:42 UTC
Thank you for submitting this issue for consideration. Red Hat Enterprise Linux 5 has reached the end of Production 1 Phase of its Life Cycle.  Red Hat does not plan to incorporate the suggested capability in a future Red Hat Enterprise Linux 5 minor release. If you would like Red  Hat to re-consider this feature request and the requested functionality is not currently in Red Hat Enterprise Linux 6, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.