Bug 436717 - Rebuild of coreutils fails with "FAIL: chcon.log"
Summary: Rebuild of coreutils fails with "FAIL: chcon.log"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-09 21:43 UTC by Robert Scheck
Modified: 2008-04-01 15:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-26 14:56:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
tests/misc/chcon.log (1.10 KB, text/plain)
2008-03-09 21:43 UTC, Robert Scheck
no flags Details

Description Robert Scheck 2008-03-09 21:43:18 UTC
Description of problem:
Rebuild of coreutils fails with "FAIL: chcon.log", because mcstrans(d) is not
a must. So please correct the patch to work also without mcstrans(d) running.

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

How reproducible:
Everytime, see above.

Expected results:
Working rebuild even without having mcstrans(d) running.

Comment 1 Robert Scheck 2008-03-09 21:43:54 UTC
Created attachment 297381 [details]
tests/misc/chcon.log

Comment 2 Ondrej Vasik 2008-03-10 11:08:13 UTC
Thanks for report, will try to find suitable solution for unactive selinux
translation... but I don't know about which patch you are talking about. Chcon
implementation was in selinux patch in coreutils-6.9, coreutils-6.10 are using
upstream implementation of chcon (which is  very similar to implementation in
coreutils-selinux.patch ).

Comment 3 Robert Scheck 2008-03-10 11:13:11 UTC
Sorry, I didn't have an exact look to it, I thought that SELinux would come from 
that patch. The fix is IMHO just to allow both: With and without translation. But
I don't know how the check is performed, maybe just an regexp?

Comment 4 Ondrej Vasik 2008-03-10 11:29:46 UTC
In coreutils-6.9 all selinux things were from that selinux patch -
coreutils-6.10 included selinux things by default - but unfortunately in some
cases unlike with Red Hat patch. Therefore upstream solution is based on Red Hat
patch, but sometimes not the same. 
Chcon check is following: perform some commands and compare results with
expected results. So maybe the easiest way would be to skip the test when
translation is not active - as is already done for the case of some only
"non-root" tests executed by root. 

Comment 5 Ondrej Vasik 2008-03-26 14:56:09 UTC
Anyway - chcon is root only test, so it will be skipped when rebuild with
non-root user. So that's an easy workaround for the issue. Same problem with not
running mcstrans(d) was with cp-a-selinux test. While fixing that issue I found
that the chcon test fails in selinux enforcing mode as well... Both issues fixed
and built as coreutils-6.10-15.fc9, closing RAWHIDE.

Comment 6 Jim Meyering 2008-04-01 15:27:22 UTC
Thanks for the report and investigation.
I've fixed this upstream:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13098


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