mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-05 04:59:42 +00:00
sandbox: do not fail without xmodmap
Signed-off-by: Petr Lautrbach <lautrbach@redhat.com> Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
parent
804e52b7f8
commit
96f6e65f40
@ -479,7 +479,10 @@ sandbox [-h] [-l level ] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [-
|
||||
|
||||
xmodmapfile = self.__homedir + "/.xmodmap"
|
||||
xd = open(xmodmapfile, "w")
|
||||
subprocess.Popen(["/usr/bin/xmodmap", "-pke"], stdout=xd).wait()
|
||||
try:
|
||||
subprocess.Popen(["/usr/bin/xmodmap", "-pke"], stdout=xd).wait()
|
||||
except:
|
||||
pass
|
||||
xd.close()
|
||||
|
||||
self.__setup_sandboxrc(self.__options.wm)
|
||||
|
Loading…
Reference in New Issue
Block a user