summaryrefslogtreecommitdiffstats
path: root/patches/source/util-linux/util-linux.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2023-10-17 19:34:56 +0000
committer Eric Hameleers <alien@slackware.com>2023-10-18 13:30:40 +0200
commit4940fc9a4273c92b6b8639dd7586f6c7ce57cc19 (patch)
tree8870ad251aedb0881b9fd0a0841345b27a556039 /patches/source/util-linux/util-linux.SlackBuild
parent8587721dc4abbac61cc5d495edc3a90b9f1ee772 (diff)
downloadcurrent-4940fc9a4273c92b6b8639dd7586f6c7ce57cc19.tar.gz
current-4940fc9a4273c92b6b8639dd7586f6c7ce57cc19.tar.xz
Tue Oct 17 19:34:56 UTC 202320231017193456_15.0
patches/packages/util-linux-2.37.4-x86_64-2_slack15.0.txz: Rebuilt. Copy /etc/pam.d/login to /etc/pam.d/remote. This is needed for /bin/login's '-h' option, used (for example) by telnetd. If -h is used without /etc/pam.d/remote, pam will not be configured properly, and /etc/securetty will be ignored, possibly allowing root to login from a tty that is not considered secure. Of course, the usual disclaimers about the security of telnet/telnetd apply. Thanks to HytronBG and Petri Kaukasoina. (* Security fix *)
Diffstat (limited to '')
-rwxr-xr-xpatches/source/util-linux/util-linux.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/patches/source/util-linux/util-linux.SlackBuild b/patches/source/util-linux/util-linux.SlackBuild
index 1564d4c19..114fd3490 100755
--- a/patches/source/util-linux/util-linux.SlackBuild
+++ b/patches/source/util-linux/util-linux.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018, 2020, 2021, 2022 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2018, 2020, 2021, 2022, 2023 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=util-linux
VERSION=${VERSION:-$(echo util-linux*.tar.xz | cut -d - -f 3 | rev | cut -f 3- -d . | rev)}
-BUILD=${BUILD:-1_slack15.0}
+BUILD=${BUILD:-2_slack15.0}
ADJTIMEXVERS=1.29
SETSERIALVERS=2.17
@@ -93,6 +93,12 @@ if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then
for file in $CWD/pam.d/* ; do
cp -a ${file} $PKG/etc/pam.d/
done
+ # In case someone is using the '-h' option to /bin/login, we will require
+ # another copy of /etc/pam.d/login called /etc/pam.d/remote. Make this copy
+ # if it doesn't exist already:
+ if [ ! -r $PKG/etc/pam.d/remote ]; then
+ cp -a $PKG/etc/pam.d/login $PKG/etc/pam.d/remote
+ fi
if [ "$SHIP_SU" = "YES" ]; then
# Add su default file to ensure using ENV_SUPATH with 'su':
mkdir -p $PKG/etc/default