diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2015-03-16 01:32:47 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-22 15:33:28 +0700 |
commit | 0c8361be83d4633a4bac61a383dc57c18a9af388 (patch) | |
tree | 8589a4cf26f2906d177285c17ba3d0e5fe6fa419 /desktop/slock | |
parent | cb228431ec7ad2c4d586eabf8bdbe5f9e001dee2 (diff) | |
download | slackbuilds-0c8361be83d4633a4bac61a383dc57c18a9af388.tar.gz |
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 <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/slock')
-rw-r--r-- | desktop/slock/slock.SlackBuild | 9 |
1 files changed, 6 insertions, 3 deletions
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 |