Static fchown instead of permission check
alkuzad opened this issue · 0 comments
alkuzad commented
Expected Behavior
Logfile can be set to /dev/stdout
Current Behavior
Instead of doing fchown every time, check permissions and do it if needed. This breaks using /dev/stdout which is root owned but it's 777
Line 4192 in c8033c3
Possible Solution
Do fchown only if write is not possible
Steps to Reproduce (for bugs)
- Set logfile config to /dev/stdout
- Start hitch
Context
This makes it hard to make sure container logs to stdout instead of stderr
Your Environment
Docker container - alpine:3.11, run as non-priviledged user