Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From 8cf3454d567f77233023be49a39a33e9f0836f89 Mon Sep 17 00:00:00 2001 |
| 2 | From: Scott Garman <scott.a.garman@intel.com> |
| 3 | Date: Thu, 14 Apr 2016 12:28:57 +0200 |
| 4 | Subject: [PATCH] Disable use of syslog for sysroot |
| 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 [disable feature] |
| 11 | |
| 12 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> |
| 13 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 14 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | --- |
| 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 | |
| 25 | diff --git a/src/groupadd.c b/src/groupadd.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 26 | index 63e1c48..a596c49 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 27 | --- 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> |
| 39 | diff --git a/src/groupdel.c b/src/groupdel.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 40 | index 70bed01..ababd81 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 41 | --- 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> |
| 53 | diff --git a/src/groupmems.c b/src/groupmems.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 54 | index fc91c8b..2842514 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 55 | --- 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> |
| 67 | diff --git a/src/groupmod.c b/src/groupmod.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 68 | index 72daf2c..8965f9d 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 69 | --- 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> |
| 81 | diff --git a/src/useradd.c b/src/useradd.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 82 | index 3aaf45c..1ab9174 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 83 | --- 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> |
| 95 | diff --git a/src/userdel.c b/src/userdel.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 96 | index c8de1d3..24d3ea9 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 97 | --- 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 106 | #include <assert.h> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 107 | #include <errno.h> |
| 108 | #include <fcntl.h> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 109 | diff --git a/src/usermod.c b/src/usermod.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 110 | index ccfbb99..24fb60d 100644 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 111 | --- 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 120 | #include <assert.h> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 121 | #include <ctype.h> |
| 122 | #include <errno.h> |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 123 | -- |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 124 | 2.11.0 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 125 | |