{"action":"opened","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/2308","repository_url":"https://api.github.com/repos/astaxie/beego","labels_url":"https://api.github.com/repos/astaxie/beego/issues/2308/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/2308/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/2308/events","html_url":"https://github.com/astaxie/beego/issues/2308","id":193683274,"number":2308,"title":"已经rotate的log权限与log的初始权限相同，依然可以写入，可能会被篡改","user":{"login":"CodeJuan","id":5423628,"avatar_url":"https://avatars.githubusercontent.com/u/5423628?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeJuan","html_url":"https://github.com/CodeJuan","followers_url":"https://api.github.com/users/CodeJuan/followers","following_url":"https://api.github.com/users/CodeJuan/following{/other_user}","gists_url":"https://api.github.com/users/CodeJuan/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeJuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeJuan/subscriptions","organizations_url":"https://api.github.com/users/CodeJuan/orgs","repos_url":"https://api.github.com/users/CodeJuan/repos","events_url":"https://api.github.com/users/CodeJuan/events{/privacy}","received_events_url":"https://api.github.com/users/CodeJuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T04:56:09Z","updated_at":"2016-12-06T04:56:09Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of Go and beego are you using (`bee version`)?\r\n\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n\r\n\r\n3. What did you do?\r\nIf possible, provide a recipe for reproducing the error.\r\nA complete runnable program is good.\r\n\r\n\r\n4. What did you expect to see?\r\ndoRotate应该把已rotate的log权限修改为440，只读，防止被误篡改\r\n\r\n5. What did you see instead?\r\n在doRotate增加权限设置\r\n```\r\nerr = os.Chmod(fName, os.FileMode(440))\r\n```\r\n\r\n参考PR：  #2307"}}
{"actor":{"display_login":"CodeJuan"}}