summaryrefslogtreecommitdiff
path: root/meta/packages/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.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/tcpdchk_libwrapped.patch
parent199177bc29ac6f476e1001b66c58ec59fd01f546 (diff)
downloadopenembedded-core-6ffc4f2e04f2d405b14f198220a3613d386489e7.tar.gz
openembedded-core-6ffc4f2e04f2d405b14f198220a3613d386489e7.tar.bz2
openembedded-core-6ffc4f2e04f2d405b14f198220a3613d386489e7.tar.xz
openembedded-core-6ffc4f2e04f2d405b14f198220a3613d386489e7.zip
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/tcpdchk_libwrapped.patch')
-rw-r--r--meta/packages/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/packages/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.patch b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.patch
new file mode 100644
index 000000000..3beae3930
--- /dev/null
+++ b/meta/packages/tcp-wrappers/tcp-wrappers-7.6/tcpdchk_libwrapped.patch
@@ -0,0 +1,39 @@
+diff -ruN tcp_wrappers_7.6.orig/tcpdchk.c tcp_wrappers_7.6/tcpdchk.c
+--- tcp_wrappers_7.6.orig/tcpdchk.c 2003-08-21 02:50:37.000000000 +0200
++++ tcp_wrappers_7.6/tcpdchk.c 2003-08-21 02:50:33.000000000 +0200
+@@ -53,6 +53,24 @@
+ #include "inetcf.h"
+ #include "scaffold.h"
+
++/* list of programs which are known to be linked with libwrap in debian */
++static const char *const libwrap_programs[] = {
++ "portmap", "mountd", "statd", "ugidd",
++ "redir", "rlinetd",
++ "sshd",
++ "atftpd",
++ "diald",
++ "esound",
++ "gdm", "gnome-session",
++ "icecast", "icecast_admin", "icecast_client", "icecast_source",
++ "mysqld",
++ "ntop",
++ "pptpd",
++ "rquotad",
++ "sendmail", "smail",
++ NULL
++};
++
+ /*
+ * Stolen from hosts_access.c...
+ */
+@@ -147,8 +165,8 @@
+ /*
+ * These are not run from inetd but may have built-in access control.
+ */
+- inet_set("portmap", WR_NOT);
+- inet_set("rpcbind", WR_NOT);
++ for (c = 0; libwrap_programs[c]; c++)
++ inet_set(libwrap_programs[c], WR_YES);
+
+ /*
+ * Check accessibility of access control files.