diff options
author | Erick555 <37542552+Erick555@users.noreply.github.com> | 2018-11-14 10:14:30 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2018-11-16 11:39:15 +0100 |
commit | d83076069e2d92b54a93d9217d23452bd98c38af (patch) | |
tree | 67a29d087211c4e61c961d718e65d25548603e52 | |
parent | b98e09b20dfab896616b4a65e15c31f684a5f9f2 (diff) | |
download | flatpak-d83076069e2d92b54a93d9217d23452bd98c38af.tar.gz |
Mount x11_socket as read-only
Fixes https://github.com/flatpak/flatpak/issues/2315
Closes: #2316
Approved by: alexlarsson
(cherry picked from commit 0af71792b47c72b628947af4b97ef687009ad49b)
-rw-r--r-- | common/flatpak-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 8b660997..e8e55262 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -188,7 +188,7 @@ flatpak_run_add_x11_args (FlatpakBwrap *bwrap, x11_socket = g_strdup_printf ("/tmp/.X11-unix/X%s", d); flatpak_bwrap_add_args (bwrap, - "--bind", x11_socket, "/tmp/.X11-unix/X99", + "--ro-bind", x11_socket, "/tmp/.X11-unix/X99", NULL); flatpak_bwrap_set_env (bwrap, "DISPLAY", ":99.0", TRUE); |