You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.4 KiB

vsftpd: update to 3.0.3 Update vsftpd to 3.0.3 released in July 2015. Changelog: https://security.appspot.com/vsftpd/Changelog.txt Release blog: http://scarybeastsecurity.blogspot.fi/2015/07/vsftpd-303-released-and-horrors-of-ftp.html - Increase VSFTP_AS_LIMIT to 200MB; various reports. - Make the PWD response more RFC compliant; report from Barry Kelly <barry@modeltwozero.com>. - Remove the trailing period from EPSV response to work around BT Internet issues; report from Tim Bishop <tdb@mirrorservice.org>. - Fix syslog_enable issues vs. seccomp filtering. Report from Michal Vyskocil <mvyskocil@suse.cz>. At least, syslogging seems to work on my Fedora now. - Allow gettimeofday() in the seccomp sandbox. I can't repro failures, but I probably have a different distro / libc / etc. and there are multiple reports. - Some kernels support PR_SET_NO_NEW_PRIVS but not PR_SET_SECCOMP, so handle this case gracefully. Report from Vasily Averin <vvs@odin.com>. - List the TLS1.2 cipher AES128-GCM-SHA256 as first preference by default. - Make some compile-time SSL defaults (such as correct client shutdown handling) stricter. - Disable Nagle algorithm during SSL data connection shutdown, to avoid 200ms delays. From Tim Kosse <tim.kosse@filezilla-project.org>. - Kill the FTP session if we see HTTP protocol commands, to avoid cross-protocol attacks. A report from Jann Horn <jann@thejh.net>. - Kill the FTP session if we see session re-use failure. A report from Tim Kosse <tim.kosse@filezilla-project.org>. (vsftpd-3.0.3pre1) - Enable ECDHE, Tim Kosse <tim.kosse@filezilla-project.org>. - Default cipher list is now just ECDHE-RSA-AES256-GCM-SHA384. - Minor SSL logging improvements. - Un-default tunable_strict_ssl_write_shutdown again. We still have tunable_strict_ssl_read_eof defaulted now, which is the important one to prove upload integrity. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
9 years ago
  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=vsftpd
  9. PKG_VERSION:=3.0.3
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://security.appspot.com/downloads/
  13. PKG_HASH:=9d4d2bf6e6e2884852ba4e69e157a2cecd68c5a7635d66a3a8cf8d898c955ef7
  14. PKG_MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
  15. PKG_LICENSE:=GPLv2
  16. PKG_CPE_ID:=cpe:/a:beasts:vsftpd
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/vsftpd/Default
  19. SUBMENU:=File Transfer
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Fast and secure FTP server
  23. URL:=https://security.appspot.com/vsftpd.html
  24. endef
  25. define Package/vsftpd
  26. $(call Package/vsftpd/Default)
  27. VARIANT:=notls
  28. TITLE+= (no TLS)
  29. endef
  30. define Package/vsftpd-tls
  31. $(call Package/vsftpd/Default)
  32. VARIANT:=tls
  33. TITLE+= (TLS)
  34. DEPENDS+=+libopenssl
  35. endef
  36. define Package/vsftpd/conffiles
  37. /etc/vsftpd.conf
  38. /etc/vsftpd
  39. endef
  40. Package/vsftpd-tls/conffiles=$(Package/vsftpd/conffiles)
  41. ifneq ($(CONFIG_USE_MUSL),)
  42. NLSSTRING:=-lcrypt
  43. else
  44. NLSSTRING:=-lcrypt -lnsl
  45. endif
  46. TARGET_CFLAGS += -D_GNU_SOURCE -include fcntl.h
  47. ifeq ($(BUILD_VARIANT),notls)
  48. define Build/Compile
  49. $(SED) 's/-lcrypt -lnsl/$(NLSSTRING)/' $(PKG_BUILD_DIR)/Makefile
  50. $(MAKE) -C $(PKG_BUILD_DIR) \
  51. CC="$(TARGET_CC)" \
  52. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  53. LDFLAGS="$(TARGET_LDFLAGS)" \
  54. vsftpd
  55. endef
  56. endif
  57. ifeq ($(BUILD_VARIANT),tls)
  58. define Build/Compile
  59. $(SED) 's/#undef VSF_BUILD_SSL/#define VSF_BUILD_SSL/' $(PKG_BUILD_DIR)/builddefs.h
  60. $(SED) 's/-lcrypt -lnsl/-lcrypt -lnsl -lssl -lcrypto/' $(PKG_BUILD_DIR)/Makefile
  61. $(SED) 's/-lcrypt -lnsl/$(NLSSTRING)/' $(PKG_BUILD_DIR)/Makefile
  62. $(MAKE) -C $(PKG_BUILD_DIR) \
  63. CC="$(TARGET_CC)" \
  64. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  65. LDFLAGS="$(TARGET_LDFLAGS)" \
  66. vsftpd
  67. endef
  68. endif
  69. define Package/vsftpd/install
  70. $(INSTALL_DIR) $(1)/usr/sbin
  71. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
  72. $(INSTALL_DIR) $(1)/etc
  73. $(INSTALL_CONF) ./files/$(PKG_NAME).conf $(1)/etc/$(PKG_NAME).conf
  74. $(INSTALL_DIR) $(1)/etc/init.d
  75. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  76. $(INSTALL_DIR) $(1)/etc/vsftpd
  77. endef
  78. Package/vsftpd-tls/install=$(Package/vsftpd/install)
  79. $(eval $(call BuildPackage,vsftpd))
  80. $(eval $(call BuildPackage,vsftpd-tls))