blob: a6f604b6523b26ca3cceae559c898f3fd4d4d63b [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>
14---
15 src/groupadd.c | 3 +++
16 src/groupdel.c | 3 +++
17 src/groupmems.c | 3 +++
18 src/groupmod.c | 3 +++
19 src/useradd.c | 3 +++
20 src/userdel.c | 3 +++
21 src/usermod.c | 3 +++
22 7 files changed, 21 insertions(+)
23
24diff --git a/src/groupadd.c b/src/groupadd.c
25index 39b4ec0..f716f57 100644
26--- a/src/groupadd.c
27+++ b/src/groupadd.c
28@@ -34,6 +34,9 @@
29
30 #ident "$Id$"
31
32+/* Disable use of syslog since we're running this command against a sysroot */
33+#undef USE_SYSLOG
34+
35 #include <ctype.h>
36 #include <fcntl.h>
37 #include <getopt.h>
38diff --git a/src/groupdel.c b/src/groupdel.c
39index da99347..46a679c 100644
40--- a/src/groupdel.c
41+++ b/src/groupdel.c
42@@ -34,6 +34,9 @@
43
44 #ident "$Id$"
45
46+/* Disable use of syslog since we're running this command against a sysroot */
47+#undef USE_SYSLOG
48+
49 #include <ctype.h>
50 #include <fcntl.h>
51 #include <grp.h>
52diff --git a/src/groupmems.c b/src/groupmems.c
53index e4f107f..95cb073 100644
54--- a/src/groupmems.c
55+++ b/src/groupmems.c
56@@ -32,6 +32,9 @@
57
58 #include <config.h>
59
60+/* Disable use of syslog since we're running this command against a sysroot */
61+#undef USE_SYSLOG
62+
63 #include <fcntl.h>
64 #include <getopt.h>
65 #include <grp.h>
66diff --git a/src/groupmod.c b/src/groupmod.c
67index d9d3807..6229737 100644
68--- a/src/groupmod.c
69+++ b/src/groupmod.c
70@@ -34,6 +34,9 @@
71
72 #ident "$Id$"
73
74+/* Disable use of syslog since we're running this command against a sysroot */
75+#undef USE_SYSLOG
76+
77 #include <ctype.h>
78 #include <fcntl.h>
79 #include <getopt.h>
80diff --git a/src/useradd.c b/src/useradd.c
81index e1ebf50..25679d8 100644
82--- a/src/useradd.c
83+++ b/src/useradd.c
84@@ -34,6 +34,9 @@
85
86 #ident "$Id$"
87
88+/* Disable use of syslog since we're running this command against a sysroot */
89+#undef USE_SYSLOG
90+
91 #include <assert.h>
92 #include <ctype.h>
93 #include <errno.h>
94diff --git a/src/userdel.c b/src/userdel.c
95index 19b12bc..a083929 100644
96--- a/src/userdel.c
97+++ b/src/userdel.c
98@@ -34,6 +34,9 @@
99
100 #ident "$Id$"
101
102+/* Disable use of syslog since we're running this command against a sysroot */
103+#undef USE_SYSLOG
104+
105 #include <errno.h>
106 #include <fcntl.h>
107 #include <getopt.h>
108diff --git a/src/usermod.c b/src/usermod.c
109index 685b50a..28e5cfc 100644
110--- a/src/usermod.c
111+++ b/src/usermod.c
112@@ -34,6 +34,9 @@
113
114 #ident "$Id$"
115
116+/* Disable use of syslog since we're running this command against a sysroot */
117+#undef USE_SYSLOG
118+
119 #include <ctype.h>
120 #include <errno.h>
121 #include <fcntl.h>
122--
1232.1.0
124