Commit Graph

11 Commits

Author SHA1 Message Date
Jeffery To 53e1692ae9 treewide: Use default PKG_BUILD_DIR when possible
This removes lines that set PKG_BUILD_DIR when the set value is no
different from the default value.

Specifically, the line is removed if the assigned value is:

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)

  The default PKG_BUILD_DIR was updated[1] to incorporate BUILD_VARIANT
  if it is set, so now this is identical to the default value.

* $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)

  if PKG_SOURCE_SUBDIR is set to $(PKG_NAME)-$(PKG_VERSION), making it
  the same as the previous case

* $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

  This is the same as the default PKG_BUILD_DIR when there is no
  BUILD_VARIANT.

* $(BUILD_DIR)/[name]-$(PKG_VERSION)

  where [name] is a string that is identical to PKG_NAME

[1]: https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=e545fac8d968864a965edb9e50c6f90940b0a6c9

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-13 02:01:34 +08:00
Rosen Penev 1371b7be87 vsftpd: Fix compilation without ECC or deprecated APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-23 18:18:03 -08:00
Hannu Nyman 3f390c5509 vsftpd: create directory for extra config files
* create /etc/vsftpd directory for extra config files
  like userlist, certificate and key
* modify config file to use that directory
* include that directory in conffiles for backup

* use PKG_HASH
* update URL

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-09 16:30:05 +03:00
Florian Fainelli 2e5deb6263 vsftpd: Pass TARGET_CPPFLAGS
Fixes build errors with external toolchains that don't have STAGING_DIR
in their default search path for headers:

mipsel-linux-gnu-gcc -c ssl.c -Os -pipe -mno-branch-likely -mips32r2
-mtune=24kc -fno-caller-saves -Wno-unused-result  -D_FORTIFY_SOURCE=1
-Wl,-z,now -Wl,-z,relro -D_GNU_SOURCE -include fcntl.h -idirafter
dummyinc
ssl.c:28:25: fatal error: openssl/err.h: No such file or directory
 #include <openssl/err.h>
                         ^
compilation terminated.
Makefile:28: recipe for target 'ssl.o' failed
make[3]: *** [ssl.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2017-04-02 11:36:20 -07:00
Alex Nikitenko beab35d113 vsftpd: Fix vsftpd compilation error for x86
Signed-off-by: Alex Nikitenko <alex.nikitenko@sirinsoftware.com>
2016-12-20 18:31:26 +02:00
Hannu Nyman f1b60bac41 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>
2015-08-17 22:21:23 +03:00
Cezary Jackiewicz 62fff58380 [packages] vsftpd: CVE-2015-1419 Unspecified vulnerability in vsftp 3.0.2 and earlier allows remote attackers to bypass access restrictions via unknown vectors, related to deny_file parsing. 2015-06-28 22:02:08 +02:00
Hannu Nyman bc7c3799d4 vsftpd: fix musl compatibility
Make vsftpd to compile with musl, while preserving uclibc compatibility.

When using musl:
* disable UTMPX functionality
* disable -lnsl option in upstream Makefile

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-06-16 21:50:04 +03:00
Hannu Nyman e27824ec06 Add license info to ccrypt, haveged, rng-tools, vsftpd
I added license info to those packages that I have imported here.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-08-08 16:22:43 +03:00
Hannu Nyman add53caa84 vsftpd: Add TLS/SSL example options. Bump PKG_RELEASE and copyright year.
I did not define myself as the maintainer, as the package already had one.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2014-07-21 19:46:34 +03:00
Hannu Nyman aff2e9e764 vsftpd: import from oldpackages. No changes. 2014-07-21 19:40:36 +03:00