blob: aac2d42b12aaf8219eaaaa5816a8ec8fd4b2f188 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 8cf3454d567f77233023be49a39a33e9f0836f89 Mon Sep 17 00:00:00 2001
2From: Scott Garman <scott.a.garman@intel.com>
3Date: Thu, 14 Apr 2016 12:28:57 +0200
4Subject: [PATCH] Disable use of syslog for sysroot
5
6Disable use of syslog to prevent sysroot user and group additions from
7writing entries to the host's syslog. This patch should only be used
8with the shadow-native recipe.
9
10Upstream-Status: Inappropriate [disable feature]
11
12Signed-off-by: Scott Garman <scott.a.garman@intel.com>
13Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050015---
16 src/groupadd.c | 3 +++
17 src/groupdel.c | 3 +++
18 src/groupmems.c | 3 +++
19 src/groupmod.c | 3 +++
20 src/useradd.c | 3 +++
21 src/userdel.c | 3 +++
22 src/usermod.c | 3 +++
23 7 files changed, 21 insertions(+)
24
25diff --git a/src/groupadd.c b/src/groupadd.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080026index 63e1c48..a596c49 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027--- a/src/groupadd.c
28+++ b/src/groupadd.c
29@@ -34,6 +34,9 @@
30
31 #ident "$Id$"
32
33+/* Disable use of syslog since we're running this command against a sysroot */
34+#undef USE_SYSLOG
35+
36 #include <ctype.h>
37 #include <fcntl.h>
38 #include <getopt.h>
39diff --git a/src/groupdel.c b/src/groupdel.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080040index 70bed01..ababd81 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041--- a/src/groupdel.c
42+++ b/src/groupdel.c
43@@ -34,6 +34,9 @@
44
45 #ident "$Id$"
46
47+/* Disable use of syslog since we're running this command against a sysroot */
48+#undef USE_SYSLOG
49+
50 #include <ctype.h>
51 #include <fcntl.h>
52 #include <grp.h>
53diff --git a/src/groupmems.c b/src/groupmems.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080054index fc91c8b..2842514 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050055--- a/src/groupmems.c
56+++ b/src/groupmems.c
57@@ -32,6 +32,9 @@
58
59 #include <config.h>
60
61+/* Disable use of syslog since we're running this command against a sysroot */
62+#undef USE_SYSLOG
63+
64 #include <fcntl.h>
65 #include <getopt.h>
66 #include <grp.h>
67diff --git a/src/groupmod.c b/src/groupmod.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080068index 72daf2c..8965f9d 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050069--- a/src/groupmod.c
70+++ b/src/groupmod.c
71@@ -34,6 +34,9 @@
72
73 #ident "$Id$"
74
75+/* Disable use of syslog since we're running this command against a sysroot */
76+#undef USE_SYSLOG
77+
78 #include <ctype.h>
79 #include <fcntl.h>
80 #include <getopt.h>
81diff --git a/src/useradd.c b/src/useradd.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080082index 3aaf45c..1ab9174 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050083--- a/src/useradd.c
84+++ b/src/useradd.c
85@@ -34,6 +34,9 @@
86
87 #ident "$Id$"
88
89+/* Disable use of syslog since we're running this command against a sysroot */
90+#undef USE_SYSLOG
91+
92 #include <assert.h>
93 #include <ctype.h>
94 #include <errno.h>
95diff --git a/src/userdel.c b/src/userdel.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080096index c8de1d3..24d3ea9 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050097--- a/src/userdel.c
98+++ b/src/userdel.c
99@@ -34,6 +34,9 @@
100
101 #ident "$Id$"
102
103+/* Disable use of syslog since we're running this command against a sysroot */
104+#undef USE_SYSLOG
105+
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800106 #include <assert.h>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500107 #include <errno.h>
108 #include <fcntl.h>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500109diff --git a/src/usermod.c b/src/usermod.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800110index ccfbb99..24fb60d 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500111--- a/src/usermod.c
112+++ b/src/usermod.c
113@@ -34,6 +34,9 @@
114
115 #ident "$Id$"
116
117+/* Disable use of syslog since we're running this command against a sysroot */
118+#undef USE_SYSLOG
119+
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800120 #include <assert.h>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500121 #include <ctype.h>
122 #include <errno.h>
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500123--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001242.11.0
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500125