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

Mount x11_socket as read-only #2315

Closed
Erick555 opened this issue Nov 14, 2018 · 0 comments
Closed

Mount x11_socket as read-only #2315

Erick555 opened this issue Nov 14, 2018 · 0 comments

Comments

@Erick555
Copy link
Contributor

Flatpak version

Flatpak 1.0.5

Description of the problem

Currently x11_socket is bind-mounted from host systems as read-write. It should be possible to bind-mount it as read-only instead as it doesn't prevent using connect() syscall on socket. In fact systemd-nspawn will refuse to bind-mount x11_socket as read-write.

Steps to reproduce

$ flatpak run --socket=x11 --command=sh org.freedesktop.Platform/x86_64/18.08
$ ls -AnG /tmp/.X11-unix/
srwxrwxrwx 1 0 0 Nov 14 09:14 X99
alexlarsson pushed a commit that referenced this issue Nov 16, 2018
Fixes #2315
Closes: #2316
Approved by: alexlarsson

(cherry picked from commit 0af7179)
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

1 participant