summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch
blob: aac2d42b12aaf8219eaaaa5816a8ec8fd4b2f188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
From 8cf3454d567f77233023be49a39a33e9f0836f89 Mon Sep 17 00:00:00 2001
From: Scott Garman <scott.a.garman@intel.com>
Date: Thu, 14 Apr 2016 12:28:57 +0200
Subject: [PATCH] Disable use of syslog for sysroot

Disable use of syslog to prevent sysroot user and group additions from
writing entries to the host's syslog. This patch should only be used
with the shadow-native recipe.

Upstream-Status: Inappropriate [disable feature]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 src/groupadd.c  | 3 +++
 src/groupdel.c  | 3 +++
 src/groupmems.c | 3 +++
 src/groupmod.c  | 3 +++
 src/useradd.c   | 3 +++
 src/userdel.c   | 3 +++
 src/usermod.c   | 3 +++
 7 files changed, 21 insertions(+)

diff --git a/src/groupadd.c b/src/groupadd.c
index 63e1c48..a596c49 100644
--- a/src/groupadd.c
+++ b/src/groupadd.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <ctype.h>
 #include <fcntl.h>
 #include <getopt.h>
diff --git a/src/groupdel.c b/src/groupdel.c
index 70bed01..ababd81 100644
--- a/src/groupdel.c
+++ b/src/groupdel.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <ctype.h>
 #include <fcntl.h>
 #include <grp.h>
diff --git a/src/groupmems.c b/src/groupmems.c
index fc91c8b..2842514 100644
--- a/src/groupmems.c
+++ b/src/groupmems.c
@@ -32,6 +32,9 @@
 
 #include <config.h>
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <fcntl.h>
 #include <getopt.h>
 #include <grp.h>
diff --git a/src/groupmod.c b/src/groupmod.c
index 72daf2c..8965f9d 100644
--- a/src/groupmod.c
+++ b/src/groupmod.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <ctype.h>
 #include <fcntl.h>
 #include <getopt.h>
diff --git a/src/useradd.c b/src/useradd.c
index 3aaf45c..1ab9174 100644
--- a/src/useradd.c
+++ b/src/useradd.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
diff --git a/src/userdel.c b/src/userdel.c
index c8de1d3..24d3ea9 100644
--- a/src/userdel.c
+++ b/src/userdel.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <assert.h>
 #include <errno.h>
 #include <fcntl.h>
diff --git a/src/usermod.c b/src/usermod.c
index ccfbb99..24fb60d 100644
--- a/src/usermod.c
+++ b/src/usermod.c
@@ -34,6 +34,9 @@
 
 #ident "$Id$"
 
+/* Disable use of syslog since we're running this command against a sysroot */
+#undef USE_SYSLOG
+
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
-- 
2.11.0