summaryrefslogtreecommitdiffstats
path: root/meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-08-11 10:04:25 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-13 13:36:02 +0100
commit6ffc4f2e04f2d405b14f198220a3613d386489e7 (patch)
tree1afb979e272a3071811e290cbb9f9c79b3a437eb /meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch
parent199177bc29ac6f476e1001b66c58ec59fd01f546 (diff)
downloadpoky-6ffc4f2e04f2d405b14f198220a3613d386489e7.tar.gz
tcp-wrappers: add new package
version 7.6 based on tcp-wrappers recipe of openembedded changes from openembedded version: - set -DUSE_GETDOMAIN in NETGROUP to fix build error - install libwrap into ${base_libdir}, since it's required by some essential components (e.g. portmap is in ${base_sbindir}) - distribute libwrap.a as well in libwrap-dev Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch')
-rw-r--r--meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch
new file mode 100644
index 0000000000..5c8c9a1548
--- /dev/null
+++ b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/safe_finger.patch
@@ -0,0 +1,29 @@
1--- tcp-wrappers-7.6-ipv6.1.orig/safe_finger.c
2+++ tcp-wrappers-7.6-ipv6.1/safe_finger.c
3@@ -26,21 +26,24 @@
4 #include <stdio.h>
5 #include <ctype.h>
6 #include <pwd.h>
7+#include <syslog.h>
8
9 extern void exit();
10
11 /* Local stuff */
12
13-char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
14+char path[] = "PATH=/bin:/usr/bin:/sbin:/usr/sbin";
15
16 #define TIME_LIMIT 60 /* Do not keep listinging forever */
17 #define INPUT_LENGTH 100000 /* Do not keep listinging forever */
18 #define LINE_LENGTH 128 /* Editors can choke on long lines */
19 #define FINGER_PROGRAM "finger" /* Most, if not all, UNIX systems */
20 #define UNPRIV_NAME "nobody" /* Preferred privilege level */
21-#define UNPRIV_UGID 32767 /* Default uid and gid */
22+#define UNPRIV_UGID 65534 /* Default uid and gid */
23
24 int finger_pid;
25+int allow_severity = SEVERITY;
26+int deny_severity = LOG_WARNING;
27
28 void cleanup(sig)
29 int sig;