From: Bdale Garbee Date: Wed, 11 Jan 2012 19:39:09 +0000 (-0700) Subject: add systemd service file provided by Michael Stapelberg X-Git-Tag: debian/1.8.3p1-3~10 X-Git-Url: https://git.gag.com/?p=debian%2Fsudo;a=commitdiff_plain;h=57f682a269840bd10c61d1ac439757df17be96d5 add systemd service file provided by Michael Stapelberg --- diff --git a/debian/changelog b/debian/changelog index fbff225..d78c69b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +sudo (1.8.3p1-3) unstable; urgency=low + + * patch from Moritz Muehlenhoff enables hardened build flags, closes: #655417 + * replacement postinst script from Mike Beattie using shell instead of Perl + * include systemd service file from Michael Stapelberg, closes: #639633 + + -- Bdale Garbee Wed, 11 Jan 2012 12:38:28 -0700 + sudo (1.8.3p1-2) unstable; urgency=low * if upgrading from squeeze, and the sudoers file is unmodified, avoid diff --git a/debian/rules b/debian/rules index adf2947..b744a68 100755 --- a/debian/rules +++ b/debian/rules @@ -130,6 +130,11 @@ install: build-stamp install -o root -g root -m 0440 debian/README \ debian/sudo-ldap/etc/sudoers.d/README + install -o root -g root -m 0644 debian/sudo.service \ + debian/sudo/lib/systemd/system/sudo.service + install -o root -g root -m 0644 debian/sudo.service \ + debian/sudo-ldap/lib/systemd/system/sudo.service + binary-indep: build install binary-arch: build install diff --git a/debian/sudo-ldap.dirs b/debian/sudo-ldap.dirs index 83f817c..ae54a52 100644 --- a/debian/sudo-ldap.dirs +++ b/debian/sudo-ldap.dirs @@ -1,5 +1,6 @@ etc/pam.d etc/sudoers.d +lib/systemd/system usr/bin usr/share/man/man8 usr/share/man/man5 diff --git a/debian/sudo.dirs b/debian/sudo.dirs index 4d15db4..f1e6b23 100644 --- a/debian/sudo.dirs +++ b/debian/sudo.dirs @@ -1,5 +1,6 @@ etc/pam.d etc/sudoers.d +lib/systemd/system usr/bin usr/share/man/man8 usr/share/man/man5 diff --git a/debian/sudo.service b/debian/sudo.service new file mode 100644 index 0000000..664d855 --- /dev/null +++ b/debian/sudo.service @@ -0,0 +1,10 @@ +[Unit] +Description=Provide limited super user privileges to specific users + +[Service] +Type=oneshot +# \073 is ';' which needs to be part of the find parameters +ExecStart=/usr/bin/find /var/lib/sudo -exec /usr/bin/touch -t 198501010000 '{}' \073 + +[Install] +WantedBy=multi-user.target