[arch-commits] Commit in polkit/trunk (PKGBUILD polkit.install)

Jan Steffens heftig at archlinux.org
Wed Aug 12 04:45:04 UTC 2015


    Date: Wednesday, August 12, 2015 @ 06:45:04
  Author: heftig
Revision: 243187

FS#43930 proc group

Modified:
  polkit/trunk/PKGBUILD
  polkit/trunk/polkit.install

----------------+
 PKGBUILD       |    2 +-
 polkit.install |   12 ++++++++----
 2 files changed, 9 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-08-12 00:36:59 UTC (rev 243186)
+++ PKGBUILD	2015-08-12 04:45:04 UTC (rev 243187)
@@ -3,7 +3,7 @@
 
 pkgname=polkit
 pkgver=0.113
-pkgrel=1
+pkgrel=2
 pkgdesc="Application development toolkit for controlling system-wide privileges"
 arch=(i686 x86_64)
 license=(LGPL)

Modified: polkit.install
===================================================================
--- polkit.install	2015-08-12 00:36:59 UTC (rev 243186)
+++ polkit.install	2015-08-12 04:45:04 UTC (rev 243187)
@@ -1,9 +1,13 @@
 post_install() {
-       getent group polkitd >/dev/null || groupadd -g 102 polkitd
-       getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -d '/' -s /bin/false polkitd
-       passwd -l polkitd &>/dev/null
+  getent group polkitd >/dev/null || groupadd -g 102 polkitd
+  getent passwd polkitd >/dev/null || useradd -c 'Policy Kit Daemon' -u 102 -g polkitd -G proc -d '/' -s /usr/bin/nologin polkitd
+  passwd -l polkitd &>/dev/null
 }
 
 post_upgrade() {
-       post_install
+  post_install
+
+  if (( $(vercmp $2 0.113-2) < 0 )); then
+    usermod -aG proc -s /usr/bin/nologin polkitd
+  fi
 }



More information about the arch-commits mailing list