Bug 1072299 - AVCs supressed (only) in one result are reported in next one
Summary: AVCs supressed (only) in one result are reported in next one
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: beah
Version: 0.15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 0.16
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-04 10:40 UTC by Jan Stancek
Modified: 2018-02-06 00:41 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-17 03:02:56 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.