Bug 1006593
Summary: | splice log rolling sets incorrect permissions | ||
---|---|---|---|
Product: | [Retired] Subscription Asset Manager | Reporter: | Chris Duryee <cduryee> |
Component: | Splice | Assignee: | John Matthews <jmatthew> |
Status: | CLOSED ERRATA | QA Contact: | mkovacik |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.3 | CC: | bkearney, jmatthew, vkuznets |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-01 11:25:22 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: | 833466 |
Description
Chris Duryee
2013-09-10 21:24:35 UTC
We created a new log handler that sets the umask so all newly created log files will be group writeable. Additionally, spacewalk-splice-checkin and the splice mod_wsgi app are both already running as the 'splice' group. Therefore when new files are created and are group writeable both splice mod_wsgi and spacewalk-splice-checkin will be able to write to this files. Change to splice.common https://github.com/splice/splice-server/commit/c5707980388c95994ce59943f5a0e61a11eeb89f Change to spacewalk-splice-tool https://github.com/splice/spacewalk-splice-tool/commit/66e6bbfed7f2e84062e65650faa257c2e8068f3b Verified with snapshot 6, permissions after rolling are ok: # ls -la /var/log/splice/s* -rw-rw-r--. 1 splice splice 4784 Sep 11 12:49 /var/log/splice/spacewalk_splice_tool.log -rw-rw-r--. 1 apache splice 14399354 Sep 11 08:49 /var/log/splice/spacewalk_splice_tool.log.1 -rw-rw-r--. 1 splice splice 5439 Sep 11 12:49 /var/log/splice/splice.log -rw-rw-r--. 1 apache splice 14697545 Sep 11 12:46 /var/log/splice/splice.log.1 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/RHEA-2013-1390.html |