From 9644d86845d11f67751a099c56320ad269218354 Mon Sep 17 00:00:00 2001 From: Jason Mehring Date: Sat, 15 Aug 2015 20:54:21 -0400 Subject: [PATCH] sudoers.d: Stops QT from using the MIT-SHM X11 Shared Memory Extension Fedora now needs this sudoer rule. Allows sudo to keep the `QT_X11_NO_MITSHM` ENV variable which prevents MIT-SHM errors for Fedora and Debian when running a QT application: `Defaults env_keep += "QT_X11_NO_MITSHM"` A complementary commit has been made in gui-agent-linux: Commit: a02e54b71a9ee17f4b10558065a8fc9deaf69984) Author: Jason Mehring Date: Sat Aug 15 20:13:48 2015 -0400 --- Makefile | 2 +- rpm_spec/core-vm.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1af2899..8fbd53b 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,7 @@ install-common: install -m 0644 -D misc/fstab $(DESTDIR)/etc/fstab install -D -m 0440 misc/qubes.sudoers $(DESTDIR)/etc/sudoers.d/qubes + install -D -m 0440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm install -d $(DESTDIR)/var/lib/qubes @@ -220,6 +221,5 @@ install-deb: install-common install-systemd install-systemd-dropins install -m 644 network/80-qubes.conf $(DESTDIR)/etc/sysctl.d/ install -D -m 644 misc/profile.d_qt_x11_no_mitshm.sh $(DESTDIR)/etc/profile.d/qt_x11_no_mitshm.sh install -D -m 440 misc/sudoers.d_umask $(DESTDIR)/etc/sudoers.d/umask - install -D -m 440 misc/sudoers.d_qt_x11_no_mitshm $(DESTDIR)/etc/sudoers.d/qt_x11_no_mitshm install-vm: install-rh install-common diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 21a968f..8b177c5 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -357,6 +357,7 @@ rm -f %{name}-%{version} %config(noreplace) /etc/qubes-rpc/qubes.GetImageRGBA %config(noreplace) /etc/qubes-rpc/qubes.SetDateTime %config(noreplace) /etc/sudoers.d/qubes +%config(noreplace) /etc/sudoers.d/qt_x11_no_mitshm %config(noreplace) /etc/sysconfig/iptables.qubes %config(noreplace) /etc/sysconfig/ip6tables.qubes /usr/lib/qubes/init/iptables