Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u8LG14vm030549 for ; Wed, 21 Sep 2016 12:01:04 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C9F26587C for ; Wed, 21 Sep 2016 16:00:59 +0000 (UTC) Received: from rhel-at-redhat.localdomain ([10.40.2.167]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8LG0vS5004685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 21 Sep 2016 12:00:58 -0400 Subject: Re: [PATCH] sandbox: do not run xmodmap in a new X session To: selinux@tycho.nsa.gov References: <45d0fdf5-48ad-242c-fa77-314bdf052bb7@tycho.nsa.gov> <1474472393-2208-1-git-send-email-plautrba@redhat.com> From: Petr Lautrbach Message-ID: <2ad227ec-827a-f1f1-eceb-2290effc3cdf@redhat.com> Date: Wed, 21 Sep 2016 18:00:57 +0200 MIME-Version: 1.0 In-Reply-To: <1474472393-2208-1-git-send-email-plautrba@redhat.com> Content-Type: text/plain; charset=windows-1252 List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: On 09/21/2016 05:39 PM, Petr Lautrbach wrote: > xmodmap causes Xephyr X server to reset itself when it's run before wm > and even right after wm. It causes termination of the server as we use > -terminate. The -terminate option seems be important enough in order not > to left running the server when the last client connection is closed. > > This patch drops the execution of xmodmap from .sandboxrc until there's > a better solution. > Note that when I only removed -terminate from Xephyr command line, xmodmap didn't modify keymaps anyway. And using the Fedora patch with "-terminate -reset" is the same as just drop "-terminate" as "-reset" overrides "-terminate" option and -reset is used by default. > Signed-off-by: Petr Lautrbach > --- > policycoreutils/sandbox/sandbox | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/policycoreutils/sandbox/sandbox b/policycoreutils/sandbox/sandbox > index 726ba9b..4ed57c1 100644 > --- a/policycoreutils/sandbox/sandbox > +++ b/policycoreutils/sandbox/sandbox > @@ -282,7 +282,7 @@ class Sandbox: > command += "'%s' " % p > fd.write("""#! /bin/sh > #TITLE: %s > -/usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap > +# /usr/bin/test -r ~/.xmodmap && /usr/bin/xmodmap ~/.xmodmap > %s & > WM_PID=$! > dbus-launch --exit-with-session %s >