diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-11-05 19:18:19 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-11-06 13:30:38 +0100 |
commit | 2d3e95aa334c39f59069fd1a725ec375deedc602 (patch) | |
tree | ca103f4c8b2c2a7189bfc19ca060ca056b9896b0 | |
parent | 44df9c66d8f2adaa07a6bb0d956908e9e0dd3bb0 (diff) | |
download | current-2d3e95aa334c39f59069fd1a725ec375deedc602.tar.gz current-2d3e95aa334c39f59069fd1a725ec375deedc602.tar.xz |
Sat Nov 5 19:18:19 UTC 202220221105191819_15.0
patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txz: Upgraded.
Fixed a potential out-of-bounds write for passwords smaller than 8
characters when passwd authentication is enabled.
This does not affect configurations that use other authentication
methods such as PAM, AIX authentication or BSD authentication.
For more information, see:
https://www.cve.org/CVERecord?id=CVE-2022-43995
(* Security fix *)
-rw-r--r-- | ChangeLog.rss | 22 | ||||
-rw-r--r-- | ChangeLog.txt | 10 | ||||
-rw-r--r-- | FILELIST.TXT | 79 | ||||
-rw-r--r-- | patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txt | 11 | ||||
-rw-r--r-- | patches/source/sudo/doinst.sh | 14 | ||||
-rw-r--r-- | patches/source/sudo/slack-desc | 19 | ||||
-rwxr-xr-x | patches/source/sudo/sudo.SlackBuild | 150 | ||||
-rw-r--r-- | patches/source/sudo/sudo.url | 1 | ||||
-rwxr-xr-x | recompress.sh | 1 |
9 files changed, 270 insertions, 37 deletions
diff --git a/ChangeLog.rss b/ChangeLog.rss index be22e9cf8..0d4a8c205 100644 --- a/ChangeLog.rss +++ b/ChangeLog.rss @@ -11,10 +11,28 @@ <description>Tracking Slackware development in git.</description> <language>en-us</language> <id xmlns="http://www.w3.org/2005/Atom">urn:uuid:c964f45e-6732-11e8-bbe5-107b4450212f</id> - <pubDate>Fri, 4 Nov 2022 19:29:28 GMT</pubDate> - <lastBuildDate>Sat, 5 Nov 2022 12:30:23 GMT</lastBuildDate> + <pubDate>Sat, 5 Nov 2022 19:18:19 GMT</pubDate> + <lastBuildDate>Sun, 6 Nov 2022 12:30:25 GMT</lastBuildDate> <generator>maintain_current_git.sh v 1.17</generator> <item> + <title>Sat, 5 Nov 2022 19:18:19 GMT</title> + <pubDate>Sat, 5 Nov 2022 19:18:19 GMT</pubDate> + <link>https://git.slackware.nl/current/tag/?h=20221105191819</link> + <guid isPermaLink="false">20221105191819</guid> + <description> + <![CDATA[<pre> +patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txz: Upgraded. + Fixed a potential out-of-bounds write for passwords smaller than 8 + characters when passwd authentication is enabled. + This does not affect configurations that use other authentication + methods such as PAM, AIX authentication or BSD authentication. + For more information, see: + https://www.cve.org/CVERecord?id=CVE-2022-43995 + (* Security fix *) + </pre>]]> + </description> + </item> + <item> <title>Fri, 4 Nov 2022 19:29:28 GMT</title> <pubDate>Fri, 4 Nov 2022 19:29:28 GMT</pubDate> <link>https://git.slackware.nl/current/tag/?h=20221104192928</link> diff --git a/ChangeLog.txt b/ChangeLog.txt index 661f6efb3..7403395b4 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,13 @@ +Sat Nov 5 19:18:19 UTC 2022 +patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txz: Upgraded. + Fixed a potential out-of-bounds write for passwords smaller than 8 + characters when passwd authentication is enabled. + This does not affect configurations that use other authentication + methods such as PAM, AIX authentication or BSD authentication. + For more information, see: + https://www.cve.org/CVERecord?id=CVE-2022-43995 + (* Security fix *) ++--------------------------+ Fri Nov 4 19:29:28 UTC 2022 patches/packages/mozilla-thunderbird-102.4.2-x86_64-1_slack15.0.txz: Upgraded. This is a bugfix release. diff --git a/FILELIST.TXT b/FILELIST.TXT index 0578884ca..48cdf62fe 100644 --- a/FILELIST.TXT +++ b/FILELIST.TXT @@ -1,20 +1,20 @@ -Fri Nov 4 19:32:50 UTC 2022 +Sat Nov 5 19:23:03 UTC 2022 Here is the file list for this directory. If you are using a mirror site and find missing or extra files in the disk subdirectories, please have the archive administrator refresh the mirror. -drwxr-xr-x 12 root root 4096 2022-11-04 19:29 . +drwxr-xr-x 12 root root 4096 2022-11-05 19:18 . -rw-r--r-- 1 root root 5767 2022-02-02 22:44 ./ANNOUNCE.15.0 -rw-r--r-- 1 root root 16609 2022-03-30 19:03 ./CHANGES_AND_HINTS.TXT --rw-r--r-- 1 root root 1156678 2022-11-04 02:29 ./CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-11-04 02:29 ./CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 1156678 2022-11-04 19:33 ./CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-11-04 19:33 ./CHECKSUMS.md5.asc -rw-r--r-- 1 root root 17976 1994-06-10 02:28 ./COPYING -rw-r--r-- 1 root root 35147 2007-06-30 04:21 ./COPYING3 -rw-r--r-- 1 root root 19573 2016-06-23 20:08 ./COPYRIGHT.TXT -rw-r--r-- 1 root root 616 2006-10-02 04:37 ./CRYPTO_NOTICE.TXT --rw-r--r-- 1 root root 1948458 2022-11-04 19:29 ./ChangeLog.txt +-rw-r--r-- 1 root root 1948938 2022-11-05 19:18 ./ChangeLog.txt drwxr-xr-x 3 root root 4096 2013-03-20 22:17 ./EFI drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT -rw-r--r-- 1 root root 1187840 2021-06-15 19:16 ./EFI/BOOT/bootx64.efi @@ -25,7 +25,7 @@ drwxr-xr-x 2 root root 4096 2022-02-02 08:21 ./EFI/BOOT -rwxr-xr-x 1 root root 2504 2019-07-05 18:54 ./EFI/BOOT/make-grub.sh -rw-r--r-- 1 root root 10722 2013-09-21 19:02 ./EFI/BOOT/osdetect.cfg -rw-r--r-- 1 root root 1273 2013-08-12 21:08 ./EFI/BOOT/tools.cfg --rw-r--r-- 1 root root 1509795 2022-11-04 02:28 ./FILELIST.TXT +-rw-r--r-- 1 root root 1509795 2022-11-04 19:32 ./FILELIST.TXT -rw-r--r-- 1 root root 1572 2012-08-29 18:27 ./GPG-KEY -rw-r--r-- 1 root root 864745 2022-02-02 08:25 ./PACKAGES.TXT -rw-r--r-- 1 root root 8034 2022-02-02 03:36 ./README.TXT @@ -738,13 +738,13 @@ drwxr-xr-x 2 root root 4096 2008-05-07 05:21 ./pasture/source/php/pear -rwxr-xr-x 1 root root 9448 2018-05-16 22:38 ./pasture/source/php/php.SlackBuild -rw-r--r-- 1 root root 775 2017-07-07 19:25 ./pasture/source/php/php.ini-development.diff.gz -rw-r--r-- 1 root root 830 2005-12-09 05:18 ./pasture/source/php/slack-desc -drwxr-xr-x 4 root root 4096 2022-11-04 19:32 ./patches --rw-r--r-- 1 root root 52145 2022-11-04 19:32 ./patches/CHECKSUMS.md5 --rw-r--r-- 1 root root 163 2022-11-04 19:32 ./patches/CHECKSUMS.md5.asc --rw-r--r-- 1 root root 69562 2022-11-04 19:32 ./patches/FILE_LIST --rw-r--r-- 1 root root 11705537 2022-11-04 19:32 ./patches/MANIFEST.bz2 --rw-r--r-- 1 root root 38530 2022-11-04 19:32 ./patches/PACKAGES.TXT -drwxr-xr-x 3 root root 16384 2022-11-04 19:32 ./patches/packages +drwxr-xr-x 4 root root 4096 2022-11-05 19:23 ./patches +-rw-r--r-- 1 root root 52705 2022-11-05 19:23 ./patches/CHECKSUMS.md5 +-rw-r--r-- 1 root root 163 2022-11-05 19:23 ./patches/CHECKSUMS.md5.asc +-rw-r--r-- 1 root root 70323 2022-11-05 19:23 ./patches/FILE_LIST +-rw-r--r-- 1 root root 11729214 2022-11-05 19:23 ./patches/MANIFEST.bz2 +-rw-r--r-- 1 root root 39150 2022-11-05 19:23 ./patches/PACKAGES.TXT +drwxr-xr-x 3 root root 16384 2022-11-05 19:22 ./patches/packages -rw-r--r-- 1 root root 327 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txt -rw-r--r-- 1 root root 10716 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-15 05:07 ./patches/packages/aaa_base-15.0-x86_64-4_slack15.0.txz.asc @@ -890,6 +890,9 @@ drwxr-xr-x 2 root root 4096 2022-08-26 04:06 ./patches/packages/linux-5.15 -rw-r--r-- 1 root root 392 2022-09-29 20:19 ./patches/packages/seamonkey-2.53.14-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 38098032 2022-09-29 20:19 ./patches/packages/seamonkey-2.53.14-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-09-29 20:19 ./patches/packages/seamonkey-2.53.14-x86_64-1_slack15.0.txz.asc +-rw-r--r-- 1 root root 442 2022-11-05 19:17 ./patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txt +-rw-r--r-- 1 root root 1206604 2022-11-05 19:17 ./patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txz +-rw-r--r-- 1 root root 163 2022-11-05 19:17 ./patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txz.asc -rw-r--r-- 1 root root 354 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 2805300 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-02-15 18:37 ./patches/packages/util-linux-2.37.4-x86_64-1_slack15.0.txz.asc @@ -926,7 +929,7 @@ drwxr-xr-x 2 root root 4096 2022-08-26 04:06 ./patches/packages/linux-5.15 -rw-r--r-- 1 root root 388 2022-10-15 04:05 ./patches/packages/zlib-1.2.13-x86_64-1_slack15.0.txt -rw-r--r-- 1 root root 105356 2022-10-15 04:05 ./patches/packages/zlib-1.2.13-x86_64-1_slack15.0.txz -rw-r--r-- 1 root root 163 2022-10-15 04:05 ./patches/packages/zlib-1.2.13-x86_64-1_slack15.0.txz.asc -drwxr-xr-x 53 root root 4096 2022-11-04 19:27 ./patches/source +drwxr-xr-x 54 root root 4096 2022-11-05 19:18 ./patches/source drwxr-xr-x 2 root root 4096 2022-01-16 05:07 ./patches/source/aaa_base -rw-r--r-- 1 root root 11041 2022-02-15 04:49 ./patches/source/aaa_base/_aaa_base.tar.gz -rwxr-xr-x 1 root root 3894 2022-02-15 05:07 ./patches/source/aaa_base/aaa_base.SlackBuild @@ -1367,6 +1370,12 @@ drwxr-xr-x 2 root root 4096 2016-07-03 18:05 ./patches/source/seamonkey/au -rw-r--r-- 1 root root 319 2021-07-13 20:11 ./patches/source/seamonkey/seamonkey.desktop -rw-r--r-- 1 root root 849 2020-03-01 04:26 ./patches/source/seamonkey/slack-desc -rw-r--r-- 1 root root 341 2017-07-21 16:21 ./patches/source/seamonkey/sm.ui.scrollToClick.diff.gz +drwxr-xr-x 2 root root 4096 2022-11-05 19:09 ./patches/source/sudo +-rw-r--r-- 1 root root 275 2004-09-19 00:25 ./patches/source/sudo/doinst.sh.gz +-rw-r--r-- 1 root root 894 2018-02-27 06:12 ./patches/source/sudo/slack-desc +-rw-r--r-- 1 root root 2667660 2022-11-04 20:32 ./patches/source/sudo/sudo-1.9.12p1.tar.xz +-rwxr-xr-x 1 root root 4582 2022-11-05 19:13 ./patches/source/sudo/sudo.SlackBuild +-rw-r--r-- 1 root root 25 2020-06-19 19:00 ./patches/source/sudo/sudo.url drwxr-xr-x 4 root root 4096 2022-02-15 02:04 ./patches/source/util-linux -rw-r--r-- 1 root root 53236 2011-07-12 20:47 ./patches/source/util-linux/adjtimex_1.29-2.2.diff.gz -rw-r--r-- 1 root root 85551 2010-04-17 03:32 ./patches/source/util-linux/adjtimex_1.29.orig.tar.gz @@ -2718,13 +2727,13 @@ drwxr-xr-x 2 root root 69632 2022-02-01 08:29 ./slackware64/kde -rw-r--r-- 1 root root 286 2022-01-06 22:07 ./slackware64/kde/kdesdk-kioslaves-21.12.1-x86_64-1.txt -rw-r--r-- 1 root root 43720 2022-01-06 22:07 ./slackware64/kde/kdesdk-kioslaves-21.12.1-x86_64-1.txz -rw-r--r-- 1 root root 163 2022-01-06 22:07 ./slackware64/kde/kdesdk-kioslaves-21.12.1-x86_64-1.txz.asc --rw-r--r-- 1 root root 374 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txt --rw-r--r-- 1 root root 30580 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txz --rw-r--r-- 1 root root 163 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txz.asc --rw-r--r-- 1 root root 389 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txt --rw-r--r-- 1 root root 73720 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txz --rw-r--r-- 1 root root 163 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txz.asc --rw-r--r-- 1 root root 294 2022-01-08 22:37 ./slackware64/kde/kdesu-5.90.0-x86_64-1.txt +-rw-r--r-- 1 root root 374 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txt +-rw-r--r-- 1 root root 30580 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txz +-rw-r--r-- 1 root root 163 2022-01-06 22:07 ./slackware64/kde/kdesdk-thumbnailers-21.12.1-x86_64-1.txz.asc +-rw-r--r-- 1 root root 389 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txt +-rw-r--r-- 1 root root 73720 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txz +-rw-r--r-- 1 root root 163 2022-01-08 22:40 ./slackware64/kde/kdesignerplugin-5.90.0-x86_64-1.txz.asc +-rw-r--r-- 1 root root 294 2022-01-08 22:37 ./slackware64/kde/kdesu-5.90.0-x86_64-1.txt -rw-r--r-- 1 root root 80304 2022-01-08 22:37 ./slackware64/kde/kdesu-5.90.0-x86_64-1.txz -rw-r--r-- 1 root root 163 2022-01-08 22:37 ./slackware64/kde/kdesu-5.90.0-x86_64-1.txz.asc -rw-r--r-- 1 root root 224 2022-01-06 23:06 ./slackware64/kde/kdev-php-21.12.1-x86_64-1.txt @@ -5463,14 +5472,14 @@ drwxr-xr-x 2 root root 65536 2022-02-01 04:47 ./slackware64/x -rw-r--r-- 1 root root 361 2021-02-13 13:08 ./slackware64/x/libXrandr-1.5.2-x86_64-3.txt -rw-r--r-- 1 root root 39536 2021-02-13 13:08 ./slackware64/x/libXrandr-1.5.2-x86_64-3.txz -rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libXrandr-1.5.2-x86_64-3.txz.asc --rw-r--r-- 1 root root 377 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txt --rw-r--r-- 1 root root 34824 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txz --rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txz.asc --rw-r--r-- 1 root root 321 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txt --rw-r--r-- 1 root root 22932 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txz --rw-r--r-- 1 root root 163 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txz.asc --rw-r--r-- 1 root root 288 2021-02-13 13:08 ./slackware64/x/libXt-1.2.1-x86_64-2.txt --rw-r--r-- 1 root root 691372 2021-02-13 13:08 ./slackware64/x/libXt-1.2.1-x86_64-2.txz +-rw-r--r-- 1 root root 377 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txt +-rw-r--r-- 1 root root 34824 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txz +-rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libXrender-0.9.10-x86_64-4.txz.asc +-rw-r--r-- 1 root root 321 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txt +-rw-r--r-- 1 root root 22932 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txz +-rw-r--r-- 1 root root 163 2021-04-01 18:07 ./slackware64/x/libXres-1.2.1-x86_64-1.txz.asc +-rw-r--r-- 1 root root 288 2021-02-13 13:08 ./slackware64/x/libXt-1.2.1-x86_64-2.txt +-rw-r--r-- 1 root root 691372 2021-02-13 13:08 ./slackware64/x/libXt-1.2.1-x86_64-2.txz -rw-r--r-- 1 root root 163 2021-02-13 13:08 ./slackware64/x/libXt-1.2.1-x86_64-2.txz.asc -rw-r--r-- 1 root root 334 2021-02-13 13:08 ./slackware64/x/libXtst-1.2.3-x86_64-4.txt -rw-r--r-- 1 root root 55124 2021-02-13 13:08 ./slackware64/x/libXtst-1.2.3-x86_64-4.txz @@ -15090,12 +15099,12 @@ drwxr-xr-x 2 root root 4096 2022-01-25 05:57 ./source/x/x11/src/driver -rw-r--r-- 1 root root 281712 2015-05-06 21:03 ./source/x/x11/src/driver/xf86-video-cirrus-1.5.3.tar.xz -rw-r--r-- 1 root root 253412 2016-12-14 21:03 ./source/x/x11/src/driver/xf86-video-dummy-0.3.8.tar.xz -rw-r--r-- 1 root root 583520 2019-09-20 16:18 ./source/x/x11/src/driver/xf86-video-geode-2.11.20.tar.xz --rw-r--r-- 1 root root 341732 2017-01-17 22:35 ./source/x/x11/src/driver/xf86-video-glint-1.2.9.tar.xz --rw-r--r-- 1 root root 288836 2018-12-07 23:49 ./source/x/x11/src/driver/xf86-video-i128-1.4.0.tar.xz --rw-r--r-- 1 root root 281288 2018-12-06 23:27 ./source/x/x11/src/driver/xf86-video-i740-1.4.0.tar.xz --rw-r--r-- 1 root root 965888 2020-12-15 17:00 ./source/x/x11/src/driver/xf86-video-intel-20201215_a511f22c.tar.xz --rw-r--r-- 1 root root 481316 2018-05-18 16:52 ./source/x/x11/src/driver/xf86-video-mach64-6.9.6.tar.xz --rw-r--r-- 1 root root 396464 2018-12-08 01:15 ./source/x/x11/src/driver/xf86-video-mga-2.0.0.tar.xz +-rw-r--r-- 1 root root 341732 2017-01-17 22:35 ./source/x/x11/src/driver/xf86-video-glint-1.2.9.tar.xz +-rw-r--r-- 1 root root 288836 2018-12-07 23:49 ./source/x/x11/src/driver/xf86-video-i128-1.4.0.tar.xz +-rw-r--r-- 1 root root 281288 2018-12-06 23:27 ./source/x/x11/src/driver/xf86-video-i740-1.4.0.tar.xz +-rw-r--r-- 1 root root 965888 2020-12-15 17:00 ./source/x/x11/src/driver/xf86-video-intel-20201215_a511f22c.tar.xz +-rw-r--r-- 1 root root 481316 2018-05-18 16:52 ./source/x/x11/src/driver/xf86-video-mach64-6.9.6.tar.xz +-rw-r--r-- 1 root root 396464 2018-12-08 01:15 ./source/x/x11/src/driver/xf86-video-mga-2.0.0.tar.xz -rw-r--r-- 1 root root 292376 2018-12-25 05:26 ./source/x/x11/src/driver/xf86-video-neomagic-1.3.0.tar.xz -rw-r--r-- 1 root root 542772 2021-01-23 18:25 ./source/x/x11/src/driver/xf86-video-nouveau-1.0.17.tar.xz -rw-r--r-- 1 root root 347036 2017-01-17 22:41 ./source/x/x11/src/driver/xf86-video-nv-2.1.21.tar.xz diff --git a/patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txt b/patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txt new file mode 100644 index 000000000..427ea5539 --- /dev/null +++ b/patches/packages/sudo-1.9.12p1-x86_64-1_slack15.0.txt @@ -0,0 +1,11 @@ +sudo: sudo (give limited root privileges to certain users) +sudo: +sudo: 'sudo' is a command that allows users to execute some commands as +sudo: root. The /etc/sudoers file (edited with 'visudo') specifies which +sudo: users have access to sudo and which commands they can run. 'sudo' +sudo: logs all its activities to /var/log/ so the system administrator +sudo: can keep an eye on things. +sudo: +sudo: Homepage: https://www.sudo.ws +sudo: +sudo: diff --git a/patches/source/sudo/doinst.sh b/patches/source/sudo/doinst.sh new file mode 100644 index 000000000..01e3d173e --- /dev/null +++ b/patches/source/sudo/doinst.sh @@ -0,0 +1,14 @@ +#!/bin/sh +config() { + NEW="$1" + OLD="`dirname $NEW`/`basename $NEW .new`" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} +config etc/sudoers.new +rm -f etc/sudoers.new diff --git a/patches/source/sudo/slack-desc b/patches/source/sudo/slack-desc new file mode 100644 index 000000000..2cd4e31cb --- /dev/null +++ b/patches/source/sudo/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +sudo: sudo (give limited root privileges to certain users) +sudo: +sudo: 'sudo' is a command that allows users to execute some commands as +sudo: root. The /etc/sudoers file (edited with 'visudo') specifies which +sudo: users have access to sudo and which commands they can run. 'sudo' +sudo: logs all its activities to /var/log/ so the system administrator +sudo: can keep an eye on things. +sudo: +sudo: Homepage: https://www.sudo.ws +sudo: +sudo: diff --git a/patches/source/sudo/sudo.SlackBuild b/patches/source/sudo/sudo.SlackBuild new file mode 100755 index 000000000..8da5d9b91 --- /dev/null +++ b/patches/source/sudo/sudo.SlackBuild @@ -0,0 +1,150 @@ +#!/bin/bash + +# Copyright 2008, 2009, 2010, 2011, 2012, 2015, 2016, 2018, 2021 Patrick J. Volkerding, Sebeka, MN, USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +cd $(dirname $0) ; CWD=$(pwd) + +PKGNAM=sudo +VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} +BUILD=${BUILD:-1_slack15.0} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i586 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi + +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} + +TMP=${TMP:-/tmp} +PKG=$TMP/package-sudo + +rm -rf $PKG +mkdir -p $TMP $PKG/var/db + +if [ "$ARCH" = "i386" ]; then + SLKCFLAGS="-O2 -march=i386 -mcpu=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "s390" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +cd $TMP +rm -rf sudo-$VERSION +tar xvf $CWD/sudo-$VERSION.tar.?z || exit 1 +cd sudo-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \+ -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \+ + +# Choose correct options depending on whether PAM is installed: +if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then + PAM_OPTIONS="--enable-pam-session --with-pam=yes" + unset SHADOW_OPTIONS +else + SHADOW_OPTIONS="--disable-pam-session --with-pam=no" + unset PAM_OPTIONS +fi + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sbindir=/usr/sbin \ + --mandir=/usr/man \ + --docdir=/usr/doc/sudo-$VERSION \ + --with-env-editor \ + $PAM_OPTIONS \ + $SHADOW_OPTIONS \ + --with-rundir=/run/sudo \ + --with-vardir=/var/db/sudo \ + --with-insults \ + --with-all-insults \ + --with-pc-insults \ + --build=$ARCH-slackware-linux || exit 1 + +make $NUMJOBS || make || exit 1 +make install DESTDIR=$PKG || exit 1 + +( cd $PKG/usr/bin + chmod 4711 sudo + ln -sf sudo sudoedit +) +chmod 755 $PKG/usr/sbin/visudo + +rm -f $PKG/usr/man/man8/sudoedit.8 +gzip -9 $PKG/usr/man/man?/*.? +( cd $PKG/usr/man/man8 ; ln -sf sudo.8.gz sudoedit.8.gz ) + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + +mv $PKG/etc/sudoers $PKG/etc/sudoers.new + +rm -r $PKG/usr/doc/sudo-$VERSION +mkdir -p $PKG/usr/doc/sudo-$VERSION +cp -a \ + INSTALL* LICENSE* NEWS* README* \ + docs/{CONTRIB*,HISTORY*,SECURITY*,TROUBLESHOOTING*,UPGRADE*} \ + $PKG/usr/doc/sudo-$VERSION +chmod 644 $PKG/usr/doc/sudo-$VERSION/* + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh + +# Build the package: +cd $PKG +/sbin/makepkg -l y -c n $TMP/sudo-$VERSION-$ARCH-$BUILD.txz + diff --git a/patches/source/sudo/sudo.url b/patches/source/sudo/sudo.url new file mode 100644 index 000000000..a80c5d324 --- /dev/null +++ b/patches/source/sudo/sudo.url @@ -0,0 +1 @@ +https://www.sudo.ws/dist diff --git a/recompress.sh b/recompress.sh index 0145eb4db..cedd325fc 100755 --- a/recompress.sh +++ b/recompress.sh @@ -1206,6 +1206,7 @@ gzip ./patches/source/openssl/doinst.sh-openssl gzip ./patches/source/openssl/certwatch gzip ./patches/source/glibc-zoneinfo/doinst.sh gzip ./patches/source/glibc-zoneinfo/zic.default.fat.diff +gzip ./patches/source/sudo/doinst.sh gzip ./patches/source/ca-certificates/fixup_update-ca-certificates.diff gzip ./patches/source/ca-certificates/doinst.sh gzip ./patches/source/ca-certificates/update-ca-certificates.c_rehash.diff |