Disable SE Linux when running the client on container

This commit is contained in:
David Kennedy S. A 2018-03-21 01:56:38 -03:00
parent 934513df80
commit 251c937b7e
1 changed files with 6 additions and 0 deletions

6
run.sh
View File

@ -1,7 +1,13 @@
#!/usr/bin/env bash
SE_enforcing=`getenforce` || true
sudo setenforce Permissive || true
docker run -ti --rm \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
--device /dev/dri \
edubart/otclient
sudo setenforce $SE_enforcing || true