[
https://issues.apache.org/jira/browse/TS-5070?focusedWorklogId=34684&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-34684
]
ASF GitHub Bot logged work on TS-5070:
--------------------------------------
Author: ASF GitHub Bot
Created on: 04/Jan/17 16:58
Start Date: 04/Jan/17 16:58
Worklog Time Spent: 10m
Work Description: Github user shinrich commented on the issue:
https://github.com/apache/trafficserver/pull/1248
The logic looks reasonable. The invocation of the OWNER privilege looks
correct. I guess we could avoid that elevation if we did the chmod at the
point of the file was created, but I would assume that would be a pretty
significant code change.
The default permissions look odd, but that seems to be the pre-existing
default. As -1, I assume that chmod() interprets that as all bits set so in
addition to setting everything wide open (0x777), it would set the
setuid/setguid bits as well. But again, that is a separate issue.
Issue Time Tracking
-------------------
Worklog Id: (was: 34684)
Time Spent: 40m (was: 0.5h)
> Add configuration variables to set file permissions for diags.log &
> traffic.out
> -------------------------------------------------------------------------------
>
> Key: TS-5070
> URL: https://issues.apache.org/jira/browse/TS-5070
> Project: Traffic Server
> Issue Type: Improvement
> Components: Logging
> Reporter: Daniel Xu
> Assignee: Daniel Xu
> Fix For: 7.1.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> It would be useful to be able to control file permissions for {{diags.log}}
> and {{traffic.out}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)