Date: Saturday, June 20, 2015 @ 17:03:07 Author: thestinger Revision: 135644
add hidepid package Added: hidepid/ hidepid/repos/ hidepid/trunk/ hidepid/trunk/PKGBUILD hidepid/trunk/hidepid.conf hidepid/trunk/hidepid.service -----------------+ PKGBUILD | 19 +++++++++++++++++++ hidepid.conf | 2 ++ hidepid.service | 11 +++++++++++ 3 files changed, 32 insertions(+) Added: hidepid/trunk/PKGBUILD =================================================================== --- hidepid/trunk/PKGBUILD (rev 0) +++ hidepid/trunk/PKGBUILD 2015-06-20 15:03:07 UTC (rev 135644) @@ -0,0 +1,19 @@ +# $Id$ +# Maintainer: Daniel Micay <[email protected]> +pkgname=hidepid +pkgver=1 +pkgrel=1 +pkgdesc='Hide process information from other users' +arch=(any) +url='https://archlinux.org/' +license=('GPL2') +source=(hidepid.conf hidepid.service) +md5sums=('ad3f003e49e9441c1fa8bd04ceb9f80b' + 'de6db359522bcbab39e051a71b1ec384') + +package() { + install -Dm644 hidepid.conf "$pkgdir/usr/lib/systemd/system/systemd-logind.service.d/hidepid.conf" + install -Dm644 hidepid.service "$pkgdir/usr/lib/systemd/system/hidepid.service" + mkdir -p "$pkgdir/usr/lib/systemd/system/local-fs.target.wants/" + ln -s -t "$pkgdir/usr/lib/systemd/system/local-fs.target.wants/" ../hidepid.service +} Added: hidepid/trunk/hidepid.conf =================================================================== --- hidepid/trunk/hidepid.conf (rev 0) +++ hidepid/trunk/hidepid.conf 2015-06-20 15:03:07 UTC (rev 135644) @@ -0,0 +1,2 @@ +[Service] +SupplementaryGroups=proc Added: hidepid/trunk/hidepid.service =================================================================== --- hidepid/trunk/hidepid.service (rev 0) +++ hidepid/trunk/hidepid.service 2015-06-20 15:03:07 UTC (rev 135644) @@ -0,0 +1,11 @@ +[Unit] +DefaultDependencies=no +Conflicts=shutdown.target +After=systemd-remount-fs.service +Before=local-fs-pre.target local-fs.target shutdown.target +Wants=local-fs-pre.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/mount -o remount,hidepid=2,gid=26 /proc
