diff options
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 |
commit | 4940fc9a4273c92b6b8639dd7586f6c7ce57cc19 (patch) | |
tree | 8870ad251aedb0881b9fd0a0841345b27a556039 /patches | |
parent | 8587721dc4abbac61cc5d495edc3a90b9f1ee772 (diff) | |
download | current-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 'patches')
-rw-r--r-- | patches/packages/util-linux-2.37.4-x86_64-2_slack15.0.txt (renamed from patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txt) | 0 | ||||
-rw-r--r-- | patches/source/util-linux/doinst.sh | 2 | ||||
-rwxr-xr-x | patches/source/util-linux/util-linux.SlackBuild | 10 |
3 files changed, 9 insertions, 3 deletions
diff --git a/patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txt b/patches/packages/util-linux-2.37.4-x86_64-2_slack15.0.txt index 7e4aa7b72..7e4aa7b72 100644 --- a/patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txt +++ b/patches/packages/util-linux-2.37.4-x86_64-2_slack15.0.txt diff --git a/patches/source/util-linux/doinst.sh b/patches/source/util-linux/doinst.sh index 8277c0e65..3d3ca6d2a 100644 --- a/patches/source/util-linux/doinst.sh +++ b/patches/source/util-linux/doinst.sh @@ -22,7 +22,7 @@ config etc/rc.d/rc.serial.new config etc/rc.d/rc.setterm.new config etc/serial.conf.new -for configfile in chfn.new chsh.new login.new runuser.new runuser-l.new su.new su-l.new ; do +for configfile in chfn.new chsh.new login.new remote.new runuser.new runuser-l.new su.new su-l.new ; do if [ -r etc/pam.d/$configfile ]; then config etc/pam.d/$configfile fi 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 |