5G-MAG / rt-5gms-application-server

5G Media Streaming - Application Server
https://www.5g-mag.com/streaming
Other
4 stars 5 forks source link

Fix: Force access mode when creating directories. #69

Closed davidjwbbc closed 1 year ago

davidjwbbc commented 1 year ago

Problem

(Spotted by @jordijoangimenez while doing end-to-end testing)

When running the AS as a system service the directories created for nginx to use can be created with permissions that allow only the root user to read/write. Since the default for nginx is to attempt to run part of nginx with effective UID of the "nobody" user this means that static files and disk caches can be denied access when that part of nginx tries to use them.

Fix

This PR forces all directories created by the AS to appear on the file-system with read access for all users.