Petr Štetiar bfed41cc6a busybox: fix login applet on selinux
Currently the system boots up, but is unusable because pressing enter
does not provide login with error:

  login: can't get SID for root

This is happenning, because login.c passes the Linux username directly
to get_default_context(), while libselinux expects an SELinux user
identity, causing the call to fail for users without a matching SELinux
name (e.g., root) and aborting login on SELinux-enabled systems.

Fixes: #19075
Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2025-April/091407.html]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Link: https://github.com/openwrt/openwrt/pull/19080
(cherry picked from commit 5809bfaaacca1d10c2e77bd073065d1d3b77527e)
Link: https://github.com/openwrt/openwrt/pull/19542
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-07-27 19:42:04 +02:00
..
2024-10-29 00:07:54 +01:00
2024-10-03 17:27:50 +02:00
2023-10-09 23:42:37 +02:00
2023-05-18 10:14:13 +02:00
2024-11-24 22:46:21 +01:00
2024-09-19 13:31:32 +02:00
2024-06-28 11:25:58 +02:00
2024-02-17 01:55:21 +01:00
2024-02-17 01:55:49 +01:00
2024-11-28 18:46:51 +00:00
2024-05-23 22:49:25 +02:00
2024-07-27 18:59:42 +02:00
2024-12-26 14:09:55 +01:00