Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 642
    • Issues 642
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 195
    • Merge Requests 195
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Merge Requests
  • !15205

Open
Opened Dec 03, 2020 by Steve Parris@Bluemax
  • Report abuse
Report abuse

community/php7: initd umask fix

  • Overview 4
  • Commits 1
  • Pipelines 3
  • Changes 2

Processes in user groups like www-data might create and share common files (like /dev/shm or sockets) that need to be read/write accessible in the group (mode_t 660). The effective file permission of O_CREAT is evaluated by mode & ~umask. That means, even if a process tries to create a file with 660 permission it will be downgraded to 640 as the default process umask is 0022. This patch will set the process umask to 0002 (that will only remove o+w permission).

Common tools like fcgiwrap or nginx are prepared in the same way already (umask 0002 or lower).

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: alpine/aports!15205
Source branch: php7-initd-umask-fix