Bug 767579
Summary: | selinux prevents quota from setting quota on homedirs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Karel Volný <kvolny> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.2 | CC: | dwalsh, mmalik, ppisar |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | selinux-policy-3.7.19-136.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-06-20 12:29: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: |
Description
Karel Volný
2011-12-14 12:28:26 UTC
Karel, you will need to use "home_root_t" label, which is used for /home directory. (In reply to comment #1) > Karel, > you will need to use "home_root_t" label, which is used for /home directory. okay, changing unconfined_u:object_r:user_home_dir_t:s0 to unconfined_u:object_r:home_root_t:s0 seems to enable quota to do its job however, this creates quite unpleasant inconsistency, as for example restorecon tends to change home_root_t to user_home_dir_t could we have this at least as RFE to enable quota to operate both on home_root_t AND user_home_dir_t ? Sure, But Karel would an admin actually setup a users homedir with a quota.group file actually in the users homedir? Or is this just a test issue? Yes, this is a good question. I would say this is more a test issue. (In reply to comment #3) > Sure, But Karel would an admin actually setup a users homedir with a > quota.group file actually in the users homedir? Or is this just a test issue? well, I don't have the statistical data ... the problem is that quota works by default per filesystem, and it puts its data (i.e. quota.user/quota.group) into fileystem's root while the typical usage is to have /home mounted on one filesystem and users' directories as subdirectories on that filesystem, I think having users' directories as separate mounts makes sense too (and using quota on them, as quota provides better control than just "I won't write the file as you are out of free blocks on this harddrive") CCing ppisar, the quota maintainer, if he can correct me/add some info ...? I have not so much to add. quota tools control quotas that are maintained per file system. Thus administrator expects the tools can work on any (real) mount point. Not only on /home. Otherwise you tell administrator that quotas are supported on /home only which is hard constraint. I think SELinux should allow quota tools to write into file_t. I added a fix to Fedora16. Fixed in selinux-policy-3.7.19-136.el6 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 |