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

upstream runc patch to avoid mqueue warning #938

Closed
bcressey opened this issue Jun 4, 2020 · 1 comment
Closed

upstream runc patch to avoid mqueue warning #938

bcressey opened this issue Jun 4, 2020 · 1 comment

Comments

@bcressey
Copy link
Contributor

bcressey commented Jun 4, 2020

In #935 we added a patch to runc to avoid a warning when mounting /dev/mqueue. This should be suitable for upstream as-is, since the error happens on any Linux distro with SELinux enabled.

The warning can be seen more directly by attempting to mount mqueue on the command line:

$ mount -t mqueue mqueue /tmp/mqueue -ocontext=system_u:system_r:system_t:s0
mount: /tmp/mqueue: wrong fs type, bad option, bad superblock on mqueue, missing codepage or helper program, or other error.

# dmesg | tail -n1
[82324.512220] SELinux: mount invalid.  Same superblock, different security settings for (dev mqueue, type mqueue)

Adding any context option will trigger the warning and the mount failure; it's simply not supported by the kernel for the reason stated in the warning.

@bcressey
Copy link
Contributor Author

bcressey commented Mar 1, 2021

Fixed upstream in opencontainers/runc#2558.

@bcressey bcressey closed this as completed Mar 1, 2021
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

No branches or pull requests

2 participants