Bug 717982

Summary: quotacheck -c fails without reporting error
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: quotaAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: kvolny, ovasik, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://sourceforge.net/tracker/?func=detail&aid=3347047&group_id=18136&atid=118136
Whiteboard:
Fixed In Version: quota-4.00-0.13.pre1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 717948 Environment:
Last Closed: 2011-07-26 03:44:02 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
Back-ported fix for quota-4.00_pre1 to return proper exit code
none
quota-4.00_pre1: Fix error message
none
Back-ported fix for quota-3.17 to return proper exit code
none
Back-ported fix for quota-3.17 to fix error message none

Description Petr Pisar 2011-06-30 15:20:07 UTC
+++ This bug was initially created as a clone of Bug #717948 +++

Description of problem:
When quotacheck access is denied by selinux, the command doesn't bother to report any error, even in verbose mode, and it returns exit code 0.

[...]
--- Additional comment from ppisar on 2011-06-30 14:51:07 GMT ---

I can confirm wrong return code:

[...]

The same bug presents with upstream development version.
-----

F16--14 affected.

How to reproduce: Enforcing SELinux, system_u:object_r:quota_exec_t:s0 label on quotacheck executable and non-mount label on mount point (e.g. system_u:object_r:file_t:s0).

Comment 1 Petr Pisar 2011-07-15 07:08:52 UTC
Created attachment 513333 [details]
Back-ported fix for quota-4.00_pre1 to return proper exit code

Comment 2 Petr Pisar 2011-07-15 07:09:38 UTC
Created attachment 513334 [details]
quota-4.00_pre1: Fix error message

Comment 3 Petr Pisar 2011-07-15 08:57:33 UTC
Created attachment 513343 [details]
Back-ported fix for quota-3.17 to return proper exit code

Comment 4 Petr Pisar 2011-07-15 08:59:04 UTC
Created attachment 513345 [details]
Back-ported fix for quota-3.17 to fix error message

Comment 5 Fedora Update System 2011-07-15 09:03:47 UTC
quota-4.00-0.13.pre1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/quota-4.00-0.13.pre1.fc15

Comment 6 Fedora Update System 2011-07-15 09:04:14 UTC
quota-3.17-17.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/quota-3.17-17.fc14

Comment 7 Fedora Update System 2011-07-16 07:31:33 UTC
Package quota-3.17-17.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing quota-3.17-17.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/quota-3.17-17.fc14
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-07-26 03:43:57 UTC
quota-3.17-17.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-07-26 03:45:38 UTC
quota-4.00-0.13.pre1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.