Bug 222393 - cdrom test fails due to /bin/cp being blocked by SELinux
Summary: cdrom test fails due to /bin/cp being blocked by SELinux
Status: CLOSED DUPLICATE of bug 218124
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Red Hat
Component: Test Suite (tests)
Version: 5
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2007-01-12 00:19 UTC by Sun Certifications
Modified: 2008-07-16 21:57 UTC (History)
0 users

Clone Of:
Last Closed: 2007-01-12 16:00:31 UTC

Attachments (Terms of Use)

Description Sun Certifications 2007-01-12 00:19:57 UTC
Description of problem:
SELinux (which must be enabled) seems to be causing the CDROM test to fail.

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

How reproducible:
Perform "hts certify --test=cdrom"

Steps to Reproduce:
1.hts certify --test=cdrom (it asks you to put in a data CD)

Actual results:

From the hts window right at the beginning of the test:
cp: cannot create directory `./device-copy': Permission denied

On the System, SELinux popup warns us that:
SELinux is preventing /bin/cp (iso9960_t) "associate" to device-copy (fs_t).

and the following info is found in the /var/log/audit/audit.log file:

type=AVC msg=audit(1168386500.282:22): avc:  denied  { associate } for  pid=6392
comm="cp" name="device-copy" scontext=system_u:object_r:iso9660_t:s0
tcontext=system_u:object_r:fs_t:s0 tclass=filesystem

Expected results:
Read of data CD should work as expected

Additional info:
the test performs CD(data), CD-RW and DVD.
Both CD and DVD tests fail while CD-RW seems to pass

Comment 1 Greg Nichols 2007-01-12 16:00:31 UTC

*** This bug has been marked as a duplicate of 218124 ***

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