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