From 0c8361be83d4633a4bac61a383dc57c18a9af388 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Mon, 16 Mar 2015 01:32:47 -0500 Subject: desktop/slock: Set /usr/bin/slock suid I'd much prefer sgid shadow, but then the binary is unable to adjust its OOM score, so it's a game of "pick your poison." Signed-off-by: Robby Workman --- desktop/slock/slock.SlackBuild | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'desktop/slock/slock.SlackBuild') diff --git a/desktop/slock/slock.SlackBuild b/desktop/slock/slock.SlackBuild index c6a11bedec..e3e232f5a1 100644 --- a/desktop/slock/slock.SlackBuild +++ b/desktop/slock/slock.SlackBuild @@ -22,7 +22,7 @@ PRGNAM=slock VERSION=${VERSION:-1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -75,8 +75,11 @@ sed "s/@SLACKCFLAGS@/$SLKCFLAGS/" $CWD/config.mk.patch | patch -p1 make PREFIX=/usr X11INC=/usr/include/X11 X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 make install PREFIX=/usr X11INC=/usr/include/X11 X11LIB=/usr/lib${LIBDIRSUFFIX}/X11 DESTDIR=$PKG -chown root:shadow $PKG/usr/bin/slock -chmod 2755 $PKG/usr/bin/slock +# This approach was preferable, but since slock must have root privs to +# adjust its OOM score, oh well... +#chown root:shadow $PKG/usr/bin/slock +#chmod 2755 $PKG/usr/bin/slock +chmod 4755 $PKG/usr/bin/slock find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3