Bug 222393

Summary: cdrom test fails due to /bin/cp being blocked by SELinux
Product: [Retired] Red Hat Hardware Certification Program Reporter: Sun Certifications <sun-linux-cert>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-12 16:00:31 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:

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):
hts-5.0-14

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 ***