Bug 743847

Summary: 2 misc.test fails in the upstream test suite (from second run)
Product: Red Hat Enterprise Linux 6 Reporter: Ondrej Moriš <omoris>
Component: aclAssignee: Kamil Dudka <kdudka>
Status: CLOSED ERRATA QA Contact: Matus Marhefka <mmarhefk>
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: kdudka, mmarhefk, sct
Target Milestone: rcKeywords: EasyFix, FastFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: acl-2.2.49-7.el6 Doc Type: Bug Fix
Doc Text:
needless to document
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 09:44:07 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:    
Bug Blocks: 1356056    

Description Ondrej Moriš 2011-10-06 09:54:39 UTC
Description of problem:

File test/f is not removed after first run of upstream tests. This causes all subsequent tests executions to fail:

# make tests
...
[11] $ setfacl -m u::rw,u:bin:rw f -- ok
[12] $ ls -dl f | awk '{print $1}' -- failed
-rw-rw-r--+                           != -rw-rw----+
[15] $ getfacl --omit-header f -- failed
user::rw-                             == user::rw-
user:bin:rw-                          == user:bin:rw-
group::rw-                            != group::r--
mask::rw-                             == mask::rw-
other::r--                            != other::---
                                      == 
[23] $ rm f -- ok
...

As Kamil pointed out [1], removing tests/f file in misc.test solves this problem:

--- a/test/misc.test 
+++ b/test/misc.test 
@@ -3,6 +3,7 @@ Pretty comprehensive ACL tests. 
This must be run on a filesystem with ACL support. Also, you will need 
two dummy users (bin and daemon) and a dummy group (daemon). 

+ $ rm -f f 
  $ umask 027 
  $ touch f

Version-Release number of selected component (if applicable):

acl-2.2.49-5.el6

How reproducible:

Always.

Steps to Reproduce:

1. rpmbuild -vv -ba ~/rpmbuil/SPECS/acl.spec
2. make -C ~/rpmbuild/BUILD/acl-2.2.49/ tests
  
Actual results:

*** misc.test ***
...
103 commands (101 passed, 2 failed)

Expected results:

*** misc.test ***
...
104 commands (104 passed, 0 failed)

Comment 1 Kamil Dudka 2011-10-06 10:44:47 UTC
upstream commit:

http://git.savannah.gnu.org/cgit/acl.git/commit/?id=a1efce0

Comment 3 Suzanne Logcher 2012-02-14 23:17:01 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. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 11 errata-xmlrpc 2017-03-21 09:44:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0626.html