Skip to contentSkip to conversation

atftp,tftp-hpa,vsftpd,dante,stunnel: Disable and remove tcp-wrapper support

PATCH New Khem Raj 1 participant 2 messages Nov 9, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 atftp,tftp-hpa,vsftpd,dante,stunnel: Disable and remove tcp-wrapper support

---
 .../recipes-daemons/atftp/atftp_0.8.0.bb      |  3 +--
 .../recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb  |  2 +-
 .../recipes-daemons/vsftpd/files/vsftpd.conf  | 12 ++++-----
 .../nopam-with-tcp_wrappers.patch             | 26 -------------------
 .../vsftpd-tcp_wrappers-support.patch         | 26 -------------------
 .../recipes-daemons/vsftpd/vsftpd_3.0.5.bb    | 10 ++-----
 .../recipes-protocols/dante/dante_1.4.3.bb    |  2 --
 .../recipes-support/stunnel/stunnel_5.76.bb   |  3 +--
 8 files changed, 11 insertions(+), 73 deletions(-)
 delete mode 100644 meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.5/nopam-with-tcp_wrappers.patch
 delete mode 100644 meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.5/vsftpd-tcp_wrappers-support.patch
meta-networking/recipes-daemons/atftp/atftp_0.8.0.bb +1 -2
index eca004302b..9db0aebccb 100644
@@ -14,9 +14,8 @@ SRC_URI = "git://git.code.sf.net/p/atftp/code;branch=master;protocol=https \
 
 inherit autotools update-rc.d systemd
 
-PACKAGECONFIG ??= "tcp-wrappers"
+PACKAGECONFIG ??= ""
 PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre"
-PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
 PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline"
 
 INITSCRIPT_PACKAGES = "${PN}d"
meta-networking/recipes-daemons/tftp-hpa/tftp-hpa_5.2.bb +1 -1
index b5a2b9dae0..96c9bdb653 100644
@@ -5,7 +5,7 @@ booting diskless workstations.  The tftp package provides the user   \
 interface for TFTP, which allows users to transfer files to and from a \
 remote machine.  This program and TFTP provide very little security, \
 and should not be enabled unless it is expressly needed."
-DEPENDS = "tcp-wrappers readline"
+DEPENDS = "readline"
 SECTION = "net"
 HOMEPAGE = "http://freecode.com/projects/tftp-hpa"
 LICENSE = "BSD-4-Clause"
meta-networking/recipes-daemons/vsftpd/files/vsftpd.conf +6 -6
index bb1929480d..5bf26fceb0 100644
@@ -110,14 +110,14 @@ xferlog_std_format=YES
 pam_service_name=vsftpd
 #
 # This option is examined if userlist_enable is activated. If you set this
-# setting to NO, then users will be denied login  unless  they are  explicitly
-# listed  in the file specified by userlist_file.  When login is denied, the
+# setting to NO, then users will be denied login  unless  they are  explicitly
+# listed  in the file specified by userlist_file.  When login is denied, the
 # denial is issued before the user is asked for a password.
 userlist_deny=YES
 #
 # If enabled, vsftpd will load a list of usernames, from the filename given by
 # userlist_file.  If a user tries to log in using  a  name in  this  file,  they
-# will be denied before they are asked for a password. This may be useful in
+# will be denied before they are asked for a password. This may be useful in
 # preventing cleartext passwords being transmitted. See also userlist_deny.
 userlist_enable=YES
 #
@@ -127,13 +127,13 @@ userlist_enable=YES
 use_localtime=YES
 #
 # If set to YES, local users will be (by default) placed in a chroot() jail in
-# their home directory after login.  Warning: This  option has  security
+# their home directory after login.  Warning: This  option has  security
 # implications,  especially  if  the users have upload permission, or shell access.
 # Only enable if you know what you are doing.  Note that these security implications
-# are not vsftpd specific. They apply to all FTP daemons which offer to put
+# are not vsftpd specific. They apply to all FTP daemons which offer to put
 # local  users in chroot() jails.
 chroot_local_user=YES
 #
 allow_writeable_chroot=YES
 #
-tcp_wrappers=YES
+tcp_wrappers=NO
meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.5/nopam-with-tcp_wrappers.patch deleted +0 -26
deleted file mode 100644
index a4387c132b..0000000000
@@ -1,26 +0,0 @@
-From 71628ddc91b6efb9b922a3fcf8cc18522f5387be Mon Sep 17 00:00:00 2001
-From: "Roy.Li" <[email protected]>
-Date: Mon, 20 Feb 2012 13:51:49 +0000
-Subject: [PATCH] Disable PAM
-
-Upstream-Status: Inappropriate [config]
-
-Signed-off-by: Roy.Li <[email protected]>
-
----
- builddefs.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/builddefs.h b/builddefs.h
-index 0106d1a..f48a568 100644
---- a/builddefs.h
-+++ b/builddefs.h
-@@ -2,7 +2,7 @@
- #define VSF_BUILDDEFS_H
-
- #define VSF_BUILD_TCPWRAPPERS
--#define VSF_BUILD_PAM
-+#undef VSF_BUILD_PAM
- #undef VSF_BUILD_SSL
-
- #endif /* VSF_BUILDDEFS_H */
meta-networking/recipes-daemons/vsftpd/vsftpd-3.0.5/vsftpd-tcp_wrappers-support.patch deleted +0 -26
deleted file mode 100644
index c558aee0aa..0000000000
@@ -1,26 +0,0 @@
-From c026b0c0de4eebb189bc77b2d4c3b9528454ac04 Mon Sep 17 00:00:00 2001
-From: "Roy.Li" <[email protected]>
-Date: Fri, 19 Jul 2013 10:19:25 +0800
-Subject: [PATCH] Enable tcp_wrapper.
-
-Upstream-Status: Inappropriate [configuration]
-
-Signed-off-by: Roy.Li <[email protected]>
-
----
- builddefs.h | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/builddefs.h b/builddefs.h
-index e908352..0106d1a 100644
---- a/builddefs.h
-+++ b/builddefs.h
-@@ -1,7 +1,7 @@
- #ifndef VSF_BUILDDEFS_H
- #define VSF_BUILDDEFS_H
-
--#undef VSF_BUILD_TCPWRAPPERS
-+#define VSF_BUILD_TCPWRAPPERS
- #define VSF_BUILD_PAM
- #undef VSF_BUILD_SSL
-
meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.5.bb +2 -8
index 9b2be6236b..f2c27606e1 100644
@@ -18,7 +18,6 @@ SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \
            file://volatiles.99_vsftpd \
            file://vsftpd.service \
            file://vsftpd-2.1.0-filter.patch \
-           ${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://vsftpd-tcp_wrappers-support.patch', '', d)} \
            ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '', '${NOPAM_SRC}', d)} \
            file://0001-sysdeputil.c-Fix-with-musl-which-does-not-have-utmpx.patch \
            "
@@ -31,15 +30,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271 \
                         file://LICENSE;md5=654df2042d44b8cac8a5654fc5be63eb"
 SRC_URI[sha256sum] = "26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3"
 
-
-PACKAGECONFIG ??= "tcp-wrappers"
-PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers"
-
 DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}"
 PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}"
-WRAPLIB = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '-lwrap', '', d)}"
-NOPAM_SRC = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}"
+NOPAM_SRC = "file://nopam.patch"
 
 inherit update-rc.d useradd systemd
 
@@ -56,7 +50,7 @@ do_configure() {
 }
 
 do_compile() {
-   oe_runmake "LIBS=-L${STAGING_LIBDIR} -lcrypt -lcap ${PAMLIB} ${WRAPLIB}"
+   oe_runmake "LIBS=-L${STAGING_LIBDIR} -lcrypt -lcap ${PAMLIB}"
 }
 
 do_install() {
meta-networking/recipes-protocols/dante/dante_1.4.3.bb +0 -2
index 4badff8bbd..901167f1b3 100644
@@ -33,8 +33,6 @@ REQUIRED_DISTRO_FEATURES = "pam"
 
 EXTRA_AUTORECONF = "-I ${S}"
 
-PACKAGECONFIG[libwrap] = ",--disable-libwrap,tcp-wrappers,libwrap"
-
 PACKAGECONFIG ??= ""
 
 do_install:append() {
meta-networking/recipes-support/stunnel/stunnel_5.76.bb +1 -2
index 4121044560..dcd3d8cdf1 100644
@@ -15,10 +15,9 @@ SRC_URI[sha256sum] = "cda37eb4d0fb1e129718ed27ad77b5735e899394ce040bb2be28bbb937
 
 inherit autotools bash-completion pkgconfig
 
-PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} libwrap"
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)}"
 
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
-PACKAGECONFIG[libwrap] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
 PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
 
 EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips"
author
#1 lore raw

PATCH 2/2 gensio,audit,syslog-ng: Disable and remove tcp-wrappers support

---
 meta-oe/recipes-connectivity/gensio/gensio_2.8.15.bb | 3 +--
 meta-oe/recipes-security/audit/audit_4.1.2.bb        | 3 +--
 meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb | 1 -
 3 files changed, 2 insertions(+), 5 deletions(-)
meta-oe/recipes-connectivity/gensio/gensio_2.8.15.bb +1 -2
index e064f5acd5..71a05560fc 100644
@@ -12,10 +12,9 @@ SRC_URI = "git://github.com/cminyard/gensio;protocol=https;branch=2.8.x;tag=v${P
 
 inherit autotools
 
-PACKAGECONFIG ??= "openssl tcp-wrappers"
+PACKAGECONFIG ??= "openssl"
 
 PACKAGECONFIG[openssl] = "--with-openssl=${STAGING_DIR_HOST}${prefix},--without-openssl, openssl"
-PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers, tcp-wrappers"
 PACKAGECONFIG[swig] = "--with-swig,--without-swig, swig"
 
 EXTRA_OECONF = "--without-python"
meta-oe/recipes-security/audit/audit_4.1.2.bb +1 -2
index 2cd28e85f1..ae06b6023e 100644
@@ -24,10 +24,9 @@ INITSCRIPT_PARAMS = "defaults"
 SYSTEMD_PACKAGES = "auditd"
 SYSTEMD_SERVICE:auditd = "auditd.service audit-rules.service"
 
-DEPENDS = "python3 tcp-wrappers libcap-ng linux-libc-headers swig-native python3-setuptools-native coreutils-native"
+DEPENDS = "python3 libcap-ng linux-libc-headers swig-native python3-setuptools-native coreutils-native"
 
 EXTRA_OECONF = " \
-        --with-libwrap \
         --with-libcap-ng \
         --with-python3 \
         --with-arm \
meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb +0 -1
index 1b46d66d6c..3eb46b775c 100644
@@ -61,7 +61,6 @@ PACKAGECONFIG[http] = "--enable-http,--disable-http,curl,"
 PACKAGECONFIG[smtp] = "--enable-smtp --with-libesmtp=${STAGING_LIBDIR},--disable-smtp,libesmtp,"
 PACKAGECONFIG[stomp] = "--enable-stomp,--disable-stomp,,"
 PACKAGECONFIG[json] = "--enable-json,--disable-json,json-c,"
-PACKAGECONFIG[tcp-wrapper] = "--enable-tcp-wrapper,--disable-tcp-wrapper,tcp-wrappers,"
 PACKAGECONFIG[geoip] = "--enable-geoip,--disable-geoip,geoip,"
 PACKAGECONFIG[native] = "--enable-native,--disable-native,,"
 PACKAGECONFIG[examples] = "--enable-example-modules,--disable-example-modules,,"