blob: 952e45fbb4aa37843841d86c64ed518b002e233c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#! /bin/sh
set -e
as_gdm () {
# setsid to dissociate from the controlling terminal, if any.
# Under systemd, this is unnecessary, because this script is called
# from a systemd unit with stdout and stderr pointing to the Journal,
# but under sysvinit, /etc/init.d/gdm3 might be invoked by a sysadmin
# with its controlling terminal shared with their privileged shell.
setsid \
setpriv \
--reuid Debian-gdm --regid Debian-gdm --init-groups \
--no-new-privs \
--inh-caps=-all \
--reset-env \
-- \
"$@"
}
umask 022
install -d /var/lib
install -m711 -oDebian-gdm -gDebian-gdm -d /var/lib/gdm3
as_gdm dconf compile '/var/lib/gdm3/greeter-dconf-defaults' '/usr/share/gdm/dconf'
as_gdm pkill --signal 'HUP' --uid 'Debian-gdm' 'dconf-service' || true
|