diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-11-05 19:25:06 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-06 09:25:03 -0800 |
| commit | 61b0cf7e087a0d690be6b4b4b29cea364d10c1c4 (patch) | |
| tree | 212d485d180bdedb29571978d6d2790b3a2e8cd8 | |
| parent | a54030b0f2dbe4fc63824b665853ab2081d9d066 (diff) | |
| download | meta-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>
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 | ||
| 15 | inherit autotools update-rc.d systemd | 15 | inherit autotools update-rc.d systemd |
| 16 | 16 | ||
| 17 | PACKAGECONFIG ??= "tcp-wrappers" | 17 | PACKAGECONFIG ??= "" |
| 18 | PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre" | 18 | PACKAGECONFIG[pcre] = "--enable-libpcre,--disable-libpcre,libpcre" |
| 19 | PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | ||
| 20 | PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline" | 19 | PACKAGECONFIG[readline] = "--enable-libreadline,--disable-libreadline,readline" |
| 21 | 20 | ||
| 22 | INITSCRIPT_PACKAGES = "${PN}d" | 21 | INITSCRIPT_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 \ | |||
| 5 | interface for TFTP, which allows users to transfer files to and from a \ | 5 | interface for TFTP, which allows users to transfer files to and from a \ |
| 6 | remote machine. This program and TFTP provide very little security, \ | 6 | remote machine. This program and TFTP provide very little security, \ |
| 7 | and should not be enabled unless it is expressly needed." | 7 | and should not be enabled unless it is expressly needed." |
| 8 | DEPENDS = "tcp-wrappers readline" | 8 | DEPENDS = "readline" |
| 9 | SECTION = "net" | 9 | SECTION = "net" |
| 10 | HOMEPAGE = "http://freecode.com/projects/tftp-hpa" | 10 | HOMEPAGE = "http://freecode.com/projects/tftp-hpa" |
| 11 | LICENSE = "BSD-4-Clause" | 11 | LICENSE = "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 | |||
| 110 | pam_service_name=vsftpd | 110 | pam_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. |
| 116 | userlist_deny=YES | 116 | userlist_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. |
| 122 | userlist_enable=YES | 122 | userlist_enable=YES |
| 123 | # | 123 | # |
| @@ -127,13 +127,13 @@ userlist_enable=YES | |||
| 127 | use_localtime=YES | 127 | use_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. |
| 135 | chroot_local_user=YES | 135 | chroot_local_user=YES |
| 136 | # | 136 | # |
| 137 | allow_writeable_chroot=YES | 137 | allow_writeable_chroot=YES |
| 138 | # | 138 | # |
| 139 | tcp_wrappers=YES | 139 | tcp_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 @@ | |||
| 1 | From 71628ddc91b6efb9b922a3fcf8cc18522f5387be Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
| 3 | Date: Mon, 20 Feb 2012 13:51:49 +0000 | ||
| 4 | Subject: [PATCH] Disable PAM | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [config] | ||
| 7 | |||
| 8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
| 9 | |||
| 10 | --- | ||
| 11 | builddefs.h | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/builddefs.h b/builddefs.h | ||
| 15 | index 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 @@ | |||
| 1 | From c026b0c0de4eebb189bc77b2d4c3b9528454ac04 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Roy.Li" <rongqing.li@windriver.com> | ||
| 3 | Date: Fri, 19 Jul 2013 10:19:25 +0800 | ||
| 4 | Subject: [PATCH] Enable tcp_wrapper. | ||
| 5 | |||
| 6 | Upstream-Status: Inappropriate [configuration] | ||
| 7 | |||
| 8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> | ||
| 9 | |||
| 10 | --- | ||
| 11 | builddefs.h | 2 +- | ||
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/builddefs.h b/builddefs.h | ||
| 15 | index 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" |
| 32 | SRC_URI[sha256sum] = "26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3" | 31 | SRC_URI[sha256sum] = "26b602ae454b0ba6d99ef44a09b6b9e0dfa7f67228106736df1f278c70bc91d3" |
| 33 | 32 | ||
| 34 | |||
| 35 | PACKAGECONFIG ??= "tcp-wrappers" | ||
| 36 | PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers" | ||
| 37 | |||
| 38 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | 33 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" |
| 39 | RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" | 34 | RDEPENDS:${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam-plugin-listfile', '', d)}" |
| 40 | PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" | 35 | PAMLIB = "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-L${STAGING_BASELIBDIR} -lpam', '', d)}" |
| 41 | WRAPLIB = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', '-lwrap', '', d)}" | 36 | NOPAM_SRC = "file://nopam.patch" |
| 42 | NOPAM_SRC = "${@bb.utils.contains('PACKAGECONFIG', 'tcp-wrappers', 'file://nopam-with-tcp_wrappers.patch', 'file://nopam.patch', d)}" | ||
| 43 | 37 | ||
| 44 | inherit update-rc.d useradd systemd | 38 | inherit update-rc.d useradd systemd |
| 45 | 39 | ||
| @@ -56,7 +50,7 @@ do_configure() { | |||
| 56 | } | 50 | } |
| 57 | 51 | ||
| 58 | do_compile() { | 52 | do_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 | ||
| 62 | do_install() { | 56 | do_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 | ||
| 34 | EXTRA_AUTORECONF = "-I ${S}" | 34 | EXTRA_AUTORECONF = "-I ${S}" |
| 35 | 35 | ||
| 36 | PACKAGECONFIG[libwrap] = ",--disable-libwrap,tcp-wrappers,libwrap" | ||
| 37 | |||
| 38 | PACKAGECONFIG ??= "" | 36 | PACKAGECONFIG ??= "" |
| 39 | 37 | ||
| 40 | do_install:append() { | 38 | do_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 | ||
| 16 | inherit autotools bash-completion pkgconfig | 16 | inherit autotools bash-completion pkgconfig |
| 17 | 17 | ||
| 18 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)} libwrap" | 18 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 systemd', d)}" |
| 19 | 19 | ||
| 20 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | 20 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
| 21 | PACKAGECONFIG[libwrap] = "--enable-libwrap,--disable-libwrap,tcp-wrappers" | ||
| 22 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" | 21 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" |
| 23 | 22 | ||
| 24 | EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips" | 23 | EXTRA_OECONF += "--with-ssl='${STAGING_EXECPREFIXDIR}' --disable-fips" |
