Bug 892394
| Summary: | gofer/pulp-cds Synchronized content is owned root:root resulting in Permission Denied with umask | |||
|---|---|---|---|---|
| Product: | Red Hat Update Infrastructure for Cloud Providers | Reporter: | Nigel Jones <nigjones> | |
| Component: | CDS | Assignee: | James Slagle <jslagle> | |
| Status: | CLOSED ERRATA | QA Contact: | mkovacik | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | high | |||
| Version: | 2.1 | CC: | hartsjc, jmoran, juwu, mmariani, vkuznets, whayutin | |
| Target Milestone: | --- | |||
| Target Release: | 2.1.1 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: |
On systems with a non-default umask, goferd may create files that are inaccessible to other components of RHUI. This fix updates goferd and sets its umask to 022 so CDS content is accessible via pulp-cds.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 928801 (view as bug list) | Environment: | ||
| Last Closed: | 2013-02-27 17:03:18 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 928801 | |||
|
Description
Nigel Jones
2013-01-07 01:20:24 UTC
gofer runs as root and thus all plugins do too. That's just a limitation of it currently. And, I prefer not to be chown'ing everything to apache;apache everytime the cds sync runs. I agree with your recommendation that setting umask 022 in the gofer init script is the best course of action here. It preserves the intent that these files are root owned, yet world readable. commit dda2705049fde735e44615367e4d3063fc784eea [root@cds1 ~]# rpm -qf /etc/init.d/goferd gofer-0.65.rhui-1.el6_3.noarch [root@cds1 ~]# grep umask /etc/sysconfig/init umask 027 [root@cds1 ~]# ls -la /etc/pki/pulp/content/ total 24 drwxrwxr-x. 4 apache apache 4096 Feb 4 04:21 . drwxrwxr-x. 4 apache apache 4096 Feb 4 04:14 .. drwxr-xr-x. 2 root root 4096 Feb 4 04:21 cp_1 -rw-r--r--. 1 root root 108 Feb 4 08:03 pulp-protected-repos -rw-r--r--. 1 root root 1241 Feb 4 08:03 pulp-server-ca.crt drwxr-xr-x. 2 root root 4096 Feb 4 04:19 rhel-x86_64-6-rhui-2-rpms-6Server-x86_64 Why does this bug need to be private? 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-2013-0571.html |