Repository navigation
Docker: Restrict log & conf permissions - #7204
Merged
Merged
Conversation
Collaborator
Author
|
现在做的是 docker 和 install script 对齐 但 xray 默认创建的空 conf 是否要保护?因为含 key 不能简单地视为 conf |
Collaborator
Author
|
conf 也收紧了,因为一些协议没有向前安全 目录和文件所有权归 root 权限分别是 75 没什么实际意义,惯例,因为 root 本就无视权限 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
简化 Docker 那边的日志权限配置
以前
/var/log/xray所有权是 root 导致默认不能写,又另外 touch 两个文件单独 chmod一旦用户删了这俩文件就会出问题,搞得我每次清日志都反直觉要多敲命令
而且不能随意定义日志文件名,需要再做权限十分麻烦
正确的做法是目录所有权归 xray 运行时用户,并收为 700
核心自己保证创建的文件权限是 600
因此 MasterKeyLog 也要改一下权限
Xray-install 脚本那边已经做过了