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>
This commit is contained in:
parent
cb228431ec
commit
0c8361be83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue