Bug 1072299

Summary: AVCs supressed (only) in one result are reported in next one
Product: [Retired] Beaker Reporter: Jan Stancek <jstancek>
Component: beahAssignee: Dan Callaghan <dcallagh>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.15CC: aigao, asaha, bpeck, dcallagh, dhowells, jburke, llim, pbunyan, rmancy, xjia
Target Milestone: 0.16   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-17 03:02:56 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 Jan Stancek 2014-03-04 10:40:42 UTC
Description of problem:
Test which reports multiple results wants to supress AVC check on single result.

Adding:
  export AVC_ERROR=+no_avc_check
  export RHTS_OPTION_STRONGER_AVC=
will supress AVC check for the result, but next result which is not suppressing AVCs now contains also AVCs suppressed by previous result.

Version-Release number of selected component (if applicable):
rhts-test-env-4.59-1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. run test, which generates AVC from result 1 and suppress them with AVC_ERROR=+no_avc_check
2. result 2 is not generating any AVCs and is also not suppressing any AVCs

Actual results:
AVCs from result 1, which should be suppressed are reported in result 2 

Expected results:
suppressed AVCs are not reported as FAIL in any result

Additional info:

Comment 1 Jan Stancek 2014-03-04 10:46:14 UTC
Proposed patch:
http://gerrit.beaker-project.org/#/c/2873/

Comment 3 Dan Callaghan 2014-03-10 06:17:07 UTC
Hint for testing:

<task name="/distribution/command" role="STANDALONE">
  <params>
    <param name="CMDS_TO_RUN" value="runcon system_u:system_r:httpd_t:s0 cat /etc/shadow ; rhts-report-result $TEST/reportavc PASS /dev/null ; runcon system_u:system_r:httpd_t:s0 cat /etc/shadow ; AVC_ERROR=+no_avc_check RHTS_OPTION_STRONGER_AVC= rhts-report-result $TEST/ignoreavc PASS /dev/null ; rhts-report-result $TEST/noavc PASS /dev/null"/>
  </params>
</task>

Expected results are:

reportavc Pass
reportavc/avc Fail
ignoreavc Pass (no AVC checking performed, no avc-log)
noavc Pass (AVC checking performed, avc-log present, but no AVC failures reported)

Comment 6 Dan Callaghan 2014-03-17 03:02:56 UTC
rhts-4.60 has been released.