facebook / facebook/hhvm

HHVM forces umask to 0 in daemon mode, leads to file/folder creation with unsafe permissions

Open
#6,159 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Folders are created with 777 instead of 755.
hhvm 3.9.0 on Debian 8.

"systemctl show hhvm" shows UMask=022

This doesn't happen when I run hhvm from commandline, only when it is running in FastCGI Mode with nginx.

Connecting with gdb and setting the umask to 022 for the hhvm process seems to "fix it" - but this is not a solution.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.