diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-01-11 14:15:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-12 11:54:05 +0000 |
commit | 405cc80b6b1b55c6aacd671024e83ca8eaa2920d (patch) | |
tree | c1e29162b299338fbecc50b1c95aefe62719529e /meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch | |
parent | 1863c0da9349c28b74ce17f0512b7ac9cbedfd8a (diff) | |
download | poky-405cc80b6b1b55c6aacd671024e83ca8eaa2920d.tar.gz |
shadow: update 4.13 -> 4.14.2
License-Update: formatting, spdx conversion
Drop:
0001-Disable-use-of-syslog-for-sysroot.patch
(issue fixed upstream)
0001-Fix-can-not-print-full-login.patch
0001-Overhaul-valid_field.patch
CVE-2023-29383.patch
(backports)
libbsd is a new native dependency, as otherwise glibc >= 2.38
is needed.
A similar fix is added to musl in order to define non-standard __BEGIN_DECLS/__END_DECLS.
(From OE-Core rev: e85069acf304fe0b68583cf79fe3ec4f775dca68)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch')
-rw-r--r-- | meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch b/meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch deleted file mode 100644 index fa1532c831..0000000000 --- a/meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From 85d0444229ee3d14fefcf10d093f49c862826f82 Mon Sep 17 00:00:00 2001 | ||
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
3 | Date: Thu, 14 Apr 2022 23:11:53 +0000 | ||
4 | Subject: [PATCH] Disable use of syslog for shadow-native tools | ||
5 | |||
6 | Disable use of syslog to prevent sysroot user and group additions from | ||
7 | writing entries to the host's syslog. This patch should only be used | ||
8 | with the shadow-native recipe. | ||
9 | |||
10 | Upstream-Status: Inappropriate [OE specific configuration] | ||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
12 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
13 | |||
14 | --- | ||
15 | configure.ac | 2 +- | ||
16 | src/login_nopam.c | 3 ++- | ||
17 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/configure.ac b/configure.ac | ||
20 | index 924254a..603af81 100644 | ||
21 | --- a/configure.ac | ||
22 | +++ b/configure.ac | ||
23 | @@ -191,7 +191,7 @@ AC_DEFINE_UNQUOTED(PASSWD_PROGRAM, "$shadow_cv_passwd_dir/passwd", | ||
24 | [Path to passwd program.]) | ||
25 | |||
26 | dnl XXX - quick hack, should disappear before anyone notices :). | ||
27 | -AC_DEFINE(USE_SYSLOG, 1, [Define to use syslog().]) | ||
28 | +#AC_DEFINE(USE_SYSLOG, 1, [Define to use syslog().]) | ||
29 | if test "$ac_cv_func_ruserok" = "yes"; then | ||
30 | AC_DEFINE(RLOGIN, 1, [Define if login should support the -r flag for rlogind.]) | ||
31 | AC_DEFINE(RUSEROK, 0, [Define to the ruserok() "success" return value (0 or 1).]) | ||
32 | diff --git a/src/login_nopam.c b/src/login_nopam.c | ||
33 | index df6ba88..fc24e13 100644 | ||
34 | --- a/src/login_nopam.c | ||
35 | +++ b/src/login_nopam.c | ||
36 | @@ -29,7 +29,6 @@ | ||
37 | #ifndef USE_PAM | ||
38 | #ident "$Id$" | ||
39 | |||
40 | -#include "prototypes.h" | ||
41 | /* | ||
42 | * This module implements a simple but effective form of login access | ||
43 | * control based on login names and on host (or domain) names, internet | ||
44 | @@ -57,6 +56,8 @@ | ||
45 | #include <netinet/in.h> | ||
46 | #include <arpa/inet.h> /* for inet_ntoa() */ | ||
47 | |||
48 | +#include "prototypes.h" | ||
49 | + | ||
50 | #if !defined(MAXHOSTNAMELEN) || (MAXHOSTNAMELEN < 64) | ||
51 | #undef MAXHOSTNAMELEN | ||
52 | #define MAXHOSTNAMELEN 256 | ||