Remove SetUID Usage
This commit is contained in:
parent
1eb6a1b96e
commit
f2c2fdff43
2
debian/DEBIAN/control
vendored
2
debian/DEBIAN/control
vendored
@ -4,4 +4,4 @@ Maintainer: TheBrokenRail <connor24nolan@live.com>
|
|||||||
Description: Fun with Blocks
|
Description: Fun with Blocks
|
||||||
Homepage: https://www.minecraft.net/en-us/edition/pi
|
Homepage: https://www.minecraft.net/en-us/edition/pi
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: docker.io, docker-compose, virgl-server, zenity
|
Depends: docker.io, docker-compose, virgl-server, zenity, policykit-1
|
||||||
|
7
debian/usr/bin/minecraft-pi
vendored
7
debian/usr/bin/minecraft-pi
vendored
@ -2,11 +2,16 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export FEATURES="$(zenity --class minecraft-pi --list --checklist --column 'Enabled' --column 'Feature' FALSE 'Touch GUI' FALSE 'Survival Mode' FALSE 'Fix Bow & Arrow' FALSE 'Fix Attacking' FALSE 'Mob Spawning')"
|
FEATURES="$(zenity --class minecraft-pi --list --checklist --column 'Enabled' --column 'Feature' FALSE 'Touch GUI' FALSE 'Survival Mode' FALSE 'Fix Bow & Arrow' FALSE 'Fix Attacking' FALSE 'Mob Spawning')"
|
||||||
|
export FEATURES
|
||||||
|
|
||||||
virgl_test_server &
|
virgl_test_server &
|
||||||
PID="$!"
|
PID="$!"
|
||||||
|
|
||||||
|
if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then
|
||||||
|
pkexec adduser "$(whoami)" docker
|
||||||
|
fi
|
||||||
|
|
||||||
xhost local:root
|
xhost local:root
|
||||||
|
|
||||||
DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/docker-compose.yml"
|
DOCKER_COMPOSE="docker-compose -f /usr/share/minecraft-pi/docker-compose.yml"
|
||||||
|
@ -5,9 +5,6 @@ set -e
|
|||||||
# Docker Messes With SetGID
|
# Docker Messes With SetGID
|
||||||
chmod -R g-s debian
|
chmod -R g-s debian
|
||||||
|
|
||||||
# Allow minecraft-pi Script To Use Docker
|
|
||||||
chmod u+s debian/usr/bin/minecraft-pi
|
|
||||||
|
|
||||||
# Clean out Directory
|
# Clean out Directory
|
||||||
rm -rf out
|
rm -rf out
|
||||||
mkdir out
|
mkdir out
|
||||||
|
Loading…
Reference in New Issue
Block a user