Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
When running xfstest (test 230) on ext4 partition test fails because selinux denies writing to this partition. Partition is mounted with these options:
'-o context=system_u:object_r:nfs_t:s0 -o grpquota,usrquota'.
After mounting the partition /sbin/quotacheck is started but it outputs Permission denied for writing to mounted partition.
When selinux is turned off everything runs as it should.
Version-Release number of selected component (if applicable):
Quota utilities version 3.17.
Steps to Reproduce:
1. create ext4 partition
2. mount it with '-o context=system_u:object_r:nfs_t:s0 -o grpquota,usrquota'
3. run '/sbin/quotacheck -g -u -m /partition/mountpoint' (fails here)
(following steps were not tested)
4. run '/sbin/quotaon /partition/mountpoint'
5. run '/usr/sbin/setquota -u user 1000 2000 3 5 /partition/mountpoint'
6. run '/usr/sbin/setquota -g user 1000 2000 3 5 /partition/mountpoint'
Actual results:
step 3 prits out:
quotacheck: Cannot create new quotafile /partition/mountpoint/aquota.user.new: Permission denied
quotacheck: Cannot initialize IO on new quotafile: Permission denied
quotacheck: Cannot create new quotafile /partition/mountpoint/aquota.group.new: Permission denied
quotacheck: Cannot initialize IO on new quotafile: Permission denied
output in /var/log/audit/audit.log:
type=AVC msg=audit(1330758684.492:658): avc: denied { write } for pid=10360 comm="quotacheck" name="/" dev=dm-1 ino=2 scontext=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir
type=SYSCALL msg=audit(1330758684.492:658): arch=c000003e syscall=2 success=no exit=-13 a0=7fffee502160 a1=c2 a2=180 a3=7fffee501eb0 items=0 ppid=10173 pid=10360 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="quotacheck" exe="/sbin/quotacheck" subj=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 key=(null)
type=AVC msg=audit(1330758684.492:659): avc: denied { write } for pid=10360 comm="quotacheck" name="/" dev=dm-1 ino=2 scontext=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir
type=SYSCALL msg=audit(1330758684.492:659): arch=c000003e syscall=2 success=no exit=-13 a0=7fffee502160 a1=c2 a2=180 a3=7fffee502180 items=0 ppid=10173 pid=10360 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="quotacheck" exe="/sbin/quotacheck" subj=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 key=(null)
Expected results:
step 3 should create two files in /parrtition/mountpoint - aquota.group and aquota.user
steps 4,5,6 should then write into these files
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.
http://rhn.redhat.com/errata/RHBA-2012-0780.html
Description of problem: When running xfstest (test 230) on ext4 partition test fails because selinux denies writing to this partition. Partition is mounted with these options: '-o context=system_u:object_r:nfs_t:s0 -o grpquota,usrquota'. After mounting the partition /sbin/quotacheck is started but it outputs Permission denied for writing to mounted partition. When selinux is turned off everything runs as it should. Version-Release number of selected component (if applicable): Quota utilities version 3.17. Steps to Reproduce: 1. create ext4 partition 2. mount it with '-o context=system_u:object_r:nfs_t:s0 -o grpquota,usrquota' 3. run '/sbin/quotacheck -g -u -m /partition/mountpoint' (fails here) (following steps were not tested) 4. run '/sbin/quotaon /partition/mountpoint' 5. run '/usr/sbin/setquota -u user 1000 2000 3 5 /partition/mountpoint' 6. run '/usr/sbin/setquota -g user 1000 2000 3 5 /partition/mountpoint' Actual results: step 3 prits out: quotacheck: Cannot create new quotafile /partition/mountpoint/aquota.user.new: Permission denied quotacheck: Cannot initialize IO on new quotafile: Permission denied quotacheck: Cannot create new quotafile /partition/mountpoint/aquota.group.new: Permission denied quotacheck: Cannot initialize IO on new quotafile: Permission denied output in /var/log/audit/audit.log: type=AVC msg=audit(1330758684.492:658): avc: denied { write } for pid=10360 comm="quotacheck" name="/" dev=dm-1 ino=2 scontext=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir type=SYSCALL msg=audit(1330758684.492:658): arch=c000003e syscall=2 success=no exit=-13 a0=7fffee502160 a1=c2 a2=180 a3=7fffee501eb0 items=0 ppid=10173 pid=10360 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="quotacheck" exe="/sbin/quotacheck" subj=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1330758684.492:659): avc: denied { write } for pid=10360 comm="quotacheck" name="/" dev=dm-1 ino=2 scontext=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=dir type=SYSCALL msg=audit(1330758684.492:659): arch=c000003e syscall=2 success=no exit=-13 a0=7fffee502160 a1=c2 a2=180 a3=7fffee502180 items=0 ppid=10173 pid=10360 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="quotacheck" exe="/sbin/quotacheck" subj=unconfined_u:unconfined_r:quota_t:s0-s0:c0.c1023 key=(null) Expected results: step 3 should create two files in /parrtition/mountpoint - aquota.group and aquota.user steps 4,5,6 should then write into these files