Bug 626747

Summary: [PATCH] Can't copy a file to a v7 filesystem
Product: [Fedora] Fedora Reporter: Lubomir Rintel <lkundrak>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.8.8-20.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-01 06:03:42 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:
Attachments:
Description Flags
Add sysv & v7 file systems (both sysv module) none

Description Lubomir Rintel 2010-08-24 09:59:47 UTC
Created attachment 440611 [details]
Add sysv & v7 file systems (both sysv module)

The following patch fixed the problem for me, though I'm not particularly sure about its correctness, possibly due my lacking understanding of selinux policies.

Without it an attempt to copy a file to a loop-mounted v7 image resulted in denial of "associate". Do all file systems have to be explicitly defined in the policy?

Comment 1 Daniel Walsh 2010-08-24 14:23:28 UTC
Yes, or you can mount them using a context mount
man mount and search for context

Do these file systems support xattrs?

Comment 2 Daniel Walsh 2010-08-24 14:25:14 UTC
Fixed in selinux-policy-3.8.8-20.fc14

Comment 3 Lubomir Rintel 2010-08-24 14:53:46 UTC
(In reply to comment #1)
> Yes, or you can mount them using a context mount
> man mount and search for context

Thank you, I did not know about that.

> Do these file systems support xattrs?

No, none of those supported by sysv module do.

Comment 4 Fedora Update System 2010-08-25 03:12:18 UTC
selinux-policy-3.8.8-20.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/selinux-policy-3.8.8-20.fc14

Comment 5 Fedora Update System 2010-08-25 13:31:44 UTC
selinux-policy-3.8.8-20.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.8.8-20.fc14

Comment 6 Fedora Update System 2010-08-26 18:38:06 UTC
selinux-policy-3.8.8-20.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.8.8-20.fc14

Comment 7 Fedora Update System 2010-09-01 06:02:25 UTC
selinux-policy-3.8.8-20.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.