mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
shadow-native: Disable syslog usage
Spamming the build host's syslog with useradd information during image creation isn't great. Add a patch to disable that. It may be possible to convince upstream to make it a configure option but for now the patch is trivial and reduces host impact to the logs. (From OE-Core rev: a52572886e60e4aff9d54b57bf45a301e1dec1ee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
22
meta/recipes-extended/shadow/files/disable_syslog.patch
Normal file
22
meta/recipes-extended/shadow/files/disable_syslog.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
When building images using shadow-native, we shouldn't be spamming the host's
|
||||
log with lots of syslog messages which aren't relavent. Disable syslog use
|
||||
in the native case.
|
||||
|
||||
Upstream-Status: Inappropriate [Would upstream accept a configure option?]
|
||||
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
||||
|
||||
Index: shadow-4.17.2/lib/defines.h
|
||||
===================================================================
|
||||
--- shadow-4.17.2.orig/lib/defines.h
|
||||
+++ shadow-4.17.2/lib/defines.h
|
||||
@@ -88,7 +88,9 @@
|
||||
|
||||
/* cleaner than lots of #ifdefs everywhere - use this as follows:
|
||||
SYSLOG((LOG_CRIT, "user %s cracked root", user)); */
|
||||
-#ifdef ENABLE_NLS
|
||||
+#if 1
|
||||
+#define SYSLOG(x)
|
||||
+#elif ENABLE_NLS
|
||||
/* Temporarily set LC_TIME to "C" to avoid strange dates in syslog.
|
||||
This is a workaround for a more general syslog(d) design problem -
|
||||
syslogd should log the current system time for each event, and not
|
||||
Reference in New Issue
Block a user