Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct permission 1777 with sticky bit for /dev/shm #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CapOM
Copy link

@CapOM CapOM commented Mar 16, 2021

Permission on /dev/shm is always "drwxrwxrwt root root"
but this was changed to 0700 when mounting a memory
volume over /dev/shm, loosing the sticky bit and the
ability for an app running as a user to use shm_open.
So this patch adds a special case to give /dev/shm
the correct permissions 1777 that relies on the sticky
bit.

Permission on /dev/shm is always "drwxrwxrwt root root"
but this was changed to 0700 when mounting a memory
volume over /dev/shm, loosing the sticky bit and the
ability for an app running as a user to use shm_open.
So this patch adds a special case to give /dev/shm
the correct permissions 1777 that relies on the sticky
bit.
@CLAassistant
Copy link

CLAassistant commented Mar 16, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants