Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1126266

Summary: skip AVC checking if selinux is not enabled
Product: [Retired] Beaker Reporter: Dan Callaghan <dcallagh>
Component: beahAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.17CC: aigao, asaha, dcallagh, rmancy, xma
Target Milestone: 0.18Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-27 06:52:29 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:

Description Dan Callaghan 2014-08-04 03:51:24 UTC
The rhts-db-submit-result script should entirely skip its AVC checking logic if selinux is disabled or unavailable.

Comment 1 Dan Callaghan 2014-08-04 05:43:32 UTC
On Gerrit: http://gerrit.beaker-project.org/3105

Comment 2 Dan Callaghan 2014-08-04 05:48:07 UTC
Suggested test cases:

1. Run an ordinary reservesys job
-> Each result should have a log file named avc_log--*.log showing AVC checking happening (this is the existing behaviour)

2. Run a reservesys job with ks_meta="selinux=--permissive"
-> Each result should have a log file named avc_log--*.log showing AVC checking happening (this is the existing behaviour)

3. Run a job which uses /distribution/command to run a command which triggers an AVC denial, for example "runcon -u system_u -t httpd_sys_content_t cat /etc/passwd".
-> Task should have an "avc" Fail result (this is the existing behaviour)

4. Run a reservesys job with ks_meta="selinux=--disabled"
-> avc_log--*.log should be absent from every result, no AVC checking is performed.

Comment 6 Dan Callaghan 2014-08-27 06:52:29 UTC
rhts 4.64 has been released.