tn3399_openwrt/package/utils
Jo-Philipp Wich 1211832977 busybox: handle crypt() errors in loginutils
The crypt(3) function is allowed to fail with either EINVAL or ENOSYS when
the given salt is either invalid or when the requested algorithm is not
implemented.

In such a case, libbb's pw_encrypt() function will silently convert the
crypt() NULL return value into an empty string which is then processed
without further errors by utilities such as chpasswd or passwd, causing
them to set an empty password when an unsupported cipher is requested.

Patch the relevant users of pw_encrypt() to abort in case an empty hash
is returned by pw_encrypt() in order to mitigate the problem.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-01-22 12:08:00 +01:00
..
adb adb: added patch for openssl 1.1.0 compatibility 2018-08-01 11:44:30 +02:00
admswconfig admswconfig: Remove dead URL + HTTPS 2018-07-30 10:35:11 +02:00
bsdiff bsdiff: Also pass down TARGET_CPPFLAGS 2017-03-01 17:19:50 -08:00
busybox busybox: handle crypt() errors in loginutils 2019-01-22 12:08:00 +01:00
bzip2 bzip2: fix hardening build 2019-01-12 22:38:38 +01:00
ct-bugcheck merge: packages: update branding in core packages 2017-12-08 19:41:18 +01:00
e2fsprogs e2fsprogs: fix glibc compile issue (FS#1749,FS#1796) 2018-10-08 17:24:23 +02:00
f2fs-tools f2fs-tools: Update to 1.12.0 2018-12-16 00:57:19 +01:00
fbtest utils/fbtest: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:51 +02:00
fritz-tools fritz_tffs_read: get tffs size from input file 2017-06-24 22:36:38 +02:00
fuse add PKG_CPE_ID ids to package and tools 2017-11-17 02:24:35 +01:00
jboot-tools firmware: add JBOOT based devices config extractor 2018-03-18 22:22:38 +01:00
jsonfilter jsonfilter: update to latest git HEAD 2018-03-14 18:48:23 +01:00
lua package/utils/lua: cleanup source mirrors 2018-04-18 23:59:32 +02:00
mdadm mdadm: Install /etc/config file as 600 2018-09-19 09:42:13 +01:00
mtd-utils mtd-utils: revert faulty upstream patch for now 2018-06-08 09:31:37 +02:00
nvram packages: nvram: make it possible to include it for ath79 targets 2018-08-13 08:46:22 +02:00
osafeloader packages: mark packages depending on a target as nonshared 2017-01-24 09:45:05 +01:00
oseama utils/oseama: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
otrx otrx: fix memory leak in otrx_create_append_zeros 2017-11-17 11:32:51 +01:00
px5g treewide: Bump PKG_RELEASE due to mbedtls update 2018-07-30 10:35:12 +02:00
spidev_test utils/spidev_test: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
ugps ugps: update to latest git HEAD 2018-11-11 02:37:05 +01:00
usbmode package/: fix $(PROJECT_GIT) usage 2018-10-11 08:42:52 +02:00
usbreset utils/usbreset: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
usbutils usbutils: Update usb.ids to 0.315 2018-09-10 09:10:20 +02:00
util-linux util-linux: Update to 2.33 2018-11-15 21:19:37 +01:00
xfsprogs xfsprogs: add xfs-admin util 2018-03-31 16:30:30 +02:00