Commit Graph

82 Commits

Author SHA1 Message Date
Michal Hrusecky c9c5f62e30
samba4: Update to version 4.18.8
Mainly security release, fixing CVE-2023-3961, CVE-2023-4091,
CVE-2023-4154, CVE-2023-42669 and CVE-2023-42670. For more details see:
https://www.samba.org/samba/history/samba-4.18.8.html

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
2023-10-16 07:15:46 +02:00
Michal Hrusecky eb7d756e79
samba4: Update to version 4.18.7
Update to the latest stable version in 4.18 series, for details, see
https://www.samba.org/samba/history/samba-4.18.7.html

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
2023-10-09 08:41:46 +02:00
Michal Hrusecky 1a3a85aa30 samba4: update to 4.18.6
Fixes various security issues. For detailed history see:

* https://www.samba.org/samba/history/samba-4.18.6.html
* https://www.samba.org/samba/history/samba-4.18.5.html
* https://www.samba.org/samba/history/samba-4.18.4.html
* https://www.samba.org/samba/history/samba-4.18.3.html
* https://www.samba.org/samba/history/samba-4.18.2.html
* https://www.samba.org/samba/history/samba-4.18.1.html

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
2023-09-23 19:15:08 -07:00
Javier Marcet ab94144b87 samba4: decouple quotas from vfs option
Signed-off-by: Javier Marcet <javier@marcet.info>
2023-04-29 13:44:21 +03:00
Andre Heider 35f4ef76e0 treewide: refactor to use PKG_BUILD_FLAGS:=gc-sections
See commit da370098 "treewide: add support for "gc-sections" in
PKG_BUILD_FLAGS" on the main repository.

Note: This only touches packages which use all three parts
(-ffunction-sections, -fdata-sections and -Wl,--gc-sections) enabled by
this build flag. Some packages only use a subset, and these are left
unchanged for now.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2023-04-08 08:38:54 +02:00
Andrew Sim 275eb110bb samba4: update to 4.18.0
Samba release history: https://www.samba.org/samba/history/samba-4.18.0.html

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2023-03-27 03:35:59 +08:00
Michael Peleshenko 604604a667
samba4: update to 4.17.5
* update to 4.17.5
* changelog: https://www.samba.org/samba/history/samba-4.17.5
* refresh patch

* CVE-2022-42898: Samba's Kerberos libraries and AD DC failed to guard against integer overflows when parsing a PAC on a 32-bit system, which allowed an attacker with a forged PAC to corrupt the heap.
 https://www.samba.org/samba/security/CVE-2022-42898.html

* CVE-2022-37966: This is the Samba CVE for the Windows Kerberos RC4-HMAC Elevation of Privilege Vulnerability disclosed by Microsoft on Nov 8 2022.

  A Samba Active Directory DC will issue weak rc4-hmac session keys for use between modern clients and servers despite all modern Kerberos implementations supporting the aes256-cts-hmac-sha1-96 cipher.

  On Samba Active Directory DCs and members 'kerberos encryption types = legacy' would force rc4-hmac as a client even if the server supports aes128-cts-hmac-sha1-96 and/or aes256-cts-hmac-sha1-96.
  https://www.samba.org/samba/security/CVE-2022-37966.html

* CVE-2022-37967: This is the Samba CVE for the Windows Kerberos Elevation of Privilege Vulnerability disclosed by Microsoft on Nov 8 2022.

  A service account with the special constrained delegation permission could forge a more powerful ticket than the one it was presented with.
  https://www.samba.org/samba/security/CVE-2022-37967.html

* CVE-2022-38023: The "RC4" protection of the NetLogon Secure channel uses the same algorithms as rc4-hmac cryptography in Kerberos, and so must also be assumed to be weak.
  https://www.samba.org/samba/security/CVE-2022-38023.html

* BUG 15210: synthetic_pathref AFP_AfpInfo failed errors.
  This resolves errors logged during macOS TimeMachine backups.
  https://bugzilla.samba.org/show_bug.cgi?id=15210

Signed-off-by: Michael Peleshenko <mpeleshenko@gmail.com>
2023-03-08 20:19:08 -05:00
Liangbin Lian e04e523a01 samba4: support both user map and valid users on same time
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
2022-11-28 14:51:42 +08:00
Andrew Sim d568f184ea samba4: update to 4.17.2
update samba to 4.17.2

* CVE-2022-3437: There is a limited write heap buffer overflow in the GSSAPI
unwrap_des() and unwrap_des3() routines of Heimdal (included in Samba).
https://www.samba.org/samba/security/CVE-2022-3437.html

* CVE-2022-3592: A malicious client can use a symlink to escape the exported
directory.
https://www.samba.org/samba/security/CVE-2022-3592.html

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-11-06 12:28:16 -08:00
Andrew Sim 46e984f051 samba4: update to 4.17.1
* update to 4.17.1
* changelog: https://www.samba.org/samba/history/samba-4.17.1
* refresh patch

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-23 22:53:12 +02:00
Andrew Sim 31ec2def9b samba4: change perl dependency to fix menuconfig
Adding perlbase-json-pp to samba4-libs dependencies was the wrong approach and caused
samba packages not to be offered by menuconfig. AFAIK perlbase-json-pp is a perl helper
to building samba4 and seems to be already included in perl/host so use that instead to
fix the menuconfig issues.

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-14 19:49:11 +02:00
Andrew Sim 0d5d9e5737 samba4: remove duplicate entry from libldb-fix-musl-libc-unkown-type-error.patch
Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-07 01:53:26 -07:00
Andrew Sim 402f4ba4ef samba4: update to 4.17.0
Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-07 01:53:26 -07:00
Andrew Sim 095eaf113b samba4: update waf-cross-answers
* update waf-cross-answers for 4.14.x

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-03 15:04:27 -07:00
Andrew Sim 5cf95dbf05 samba4: update to 4.14.14
* update to 4.14.14
* fixes: CVE-2022-2031, CVE-2022-32744, CVE-2022-32745, CVE-2022-32746, CVE-2022-32742

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2022-10-03 15:04:27 -07:00
Andy Walsh cd49a8fb27 samba4: drop maintainership
drop maintainership:
* samba4
* ksmbd-tools
* perl-parse-yapp
* libtirpc
* softethervpn5
* wsdd2
* rpcsvc-proto

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2022-06-21 12:24:15 -06:00
Zoltan HERPAI 07a1ed8805 samba4: add riscv64 support
Required for sifiveu target.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2022-06-02 15:55:36 -07:00
Sergey V. Lobanov 510d44d988 samba4: fix build on macos
This commit fixes two issues on macos:
1. Added a patch to fix 'echo -n' issue with MacOS shell
(backported from upstream)
2. Redefined sys.platform='linux' for target build if build host is
MacOS (otherwise, build script tries to use MacOS logic for
OpenWrt(Linux) target build)

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-05-22 13:40:48 -07:00
Rosen Penev ece80b55eb samba: add ppc64 support
Needed for QoriQ target

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-02-28 05:33:05 -08:00
Andy Walsh 1fa70d6a3c samba4: update to 4.14.12
* update to 4.14.12
* fixes: CVE-2021-44142, CVE-2022-0336

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2022-02-01 07:20:56 -05:00
Andy Walsh 7730a65d30 samba4: update to 4.14.11; fix AD_DC build
* update to 4.14.11
* fix AD_DC build
* add vfs_widelinks to defaults
* refresh patches
* fixes: #16697, #17692
* fixes: CVE-2016-2124, CVE-2020-25717, CVE-2020-25718, CVE-2020-25719, CVE-2020-25721, CVE-2020-25722, CVE-2021-3738, CVE-2021-23192

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2022-01-28 12:09:09 -08:00
Andy Walsh f75bb89c7e samba: update to 4.14.7
* update to 4.14.7

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-09-08 07:28:54 -07:00
Fritz D. Ansel 2992e3bb7d samba4: allow disabling wsdd2 in menuconfig
but keep it selected by default as before
so it could be selected if nmbd and/or wssd2
should be used

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-15 14:55:31 +03:00
Fritz D. Ansel 6bac8c6275 samba4: use hostname only as name
even if a fqdn (with domain) is set by user

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-15 14:44:18 +03:00
Fritz D. Ansel 059f622ac9 samba4: set stoplevel
to allow graceful stop of the daemon

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
2021-08-15 14:44:09 +03:00
Andy Walsh 7f3f6d162a samba4: update to 4.14.5
* update to 4.14.5
* refresh patches

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-06-27 15:32:34 +02:00
Andy Walsh 2057fc9ee4 samba4: update to 4.13.9
* update to 4.13.9

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-06-17 18:28:08 +02:00
Andy Walsh 93b34d4dda samba4: update to 4.13.8
* update to 4.13.8
* remove faulty io_uring kernel detection
* fixes CVE's: CVE-2020-27840, CVE-2021-20277, CVE-2020-27840, CVE-2021-20277, CVE-2020-27840, CVE-2021-20277, CVE-2021-20254
* resolves #15512

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-05-06 14:31:29 -07:00
Ilya Lipnitskiy 5d8d4fbbcb
treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00
Andy Walsh 35b3a4444e samba4: update to 4.13.4
* update to 4.13.4

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-01-26 12:15:24 +01:00
Andy Walsh c8f3cca283 samba4: add proper io_uring kernel detection
* add proper io_uring kernel detection

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-01-11 23:02:26 +02:00
Andy Walsh 97e55a28b3 samba4: update to 4.13.3, enbale io_uring
* update to 4.13.3
* enable vfs io_uring module by default, if kernel supports it
* fix for possible exploit openwrt/packages#13758
* sanetize all external template/config inputs
* fix some shellcheck warnings
* remove old aio modules/deps

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2021-01-08 17:28:36 +01:00
Andy Walsh 2789b91e94 samba4: update to 4.13.2
* update to 4.13.2
* remove outdated option "write cache size"

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-12-08 19:48:00 +01:00
Jan Pavlinec 6647b3278b
samba4: update to version 4.12.7
Note:
Fixes CVE-2020-1472 in case smb.conf
contains 'server schannel = no' or 'server schannel = auto'

Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2020-09-24 12:29:16 +02:00
Andy Walsh 896ebed773 samba4: update to 4.12.6
* update to 4.12.6
* fix optional modules not included on module build (vfs_btrfs, vfs_linux_xfs_sgid)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-09-13 17:50:37 +02:00
Andy Walsh 4da8b01f67 samba4: update to 4.12.5
* update to 4.12.5
* fixes CVE-2020-10730, CVE-2020-10745, CVE-2020-10760, CVE-2020-14303
* add fix-musl_missing__nss_buflen_passwd.patch
* remove fixed tirpc include
* add extra CONFIGURE_VARS (XSLTPROC=false, WAF_NO_PREFORK=1)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-07-03 01:38:48 +02:00
Andy Walsh 68af8dcde3 samba4: add new UCI option "enable_extra_tuning"
* add new UCI option "enable_extra_tuning"
* update template
* add config examples for options
* fix some access warnings on samba /var dirs

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-06-27 22:47:30 +02:00
Andy Walsh d1e7a77e61 samba4: fix python3 host paths
* fix python3 host paths, ensure we use build hostpkg tools

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-06-19 13:22:52 +02:00
Andy Walsh c5b1b6f86e samba4: update waf-cross-answers
* update waf-cross-answers for 4.12.x

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-06-16 21:46:04 +02:00
Andy Walsh 2698c06d5b samba4: unbundle libunwind, icu
* add unbundle libunwind, icu patches

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-06-14 17:51:21 +02:00
Andy Walsh f29cf74c28 samba4: update to 4.12.3
* update to 4.12.3
* update/remove patches
* disable netbios port 139 on 'DISABLE_NETBIOS' option or missing 'nmbd'

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-06-13 02:01:25 +02:00
Jeffery To 1bc2f4f3c6 treewide: Remove Python variants for non-Python packages
This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Daniel Bermond b1aed107b6
samba4: bring back the fix to build with parallel jobs
Fixes #11417

The fix was implemented in commit 710700c and was later removed in
commit c50c583.

Signed-off-by: Daniel Bermond <danielbermond@gmail.com>
2020-02-23 19:07:52 +00:00
Andy Walsh 8a13ba8de1 samba4: update to 4.11.6, add new UCI option
* update to 4.11.6
* add new UCI option "allow_legacy_protocols" to section [samba]

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2020-02-09 23:21:35 +01:00
Andy Walsh 6d4cf0f2d7 samba4: fix libpam deps
* use old workaround for broken unbundle pam patch

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-12-20 00:20:23 +01:00
Andy Walsh c50c5836ea samba4: update to 4.11.4
* update to 4.11.4 (python3 version)
* re-enable AD-DC option
* add 'samba_nice' UCI option via "config procd 'extra'"
* restructure buildsteps (don't rely on waf --targets logic)
* move quota option into VFS
* move ACL option into AC-DC
* add more admin-tools
* use rpath_install for libs
* fix rpath + rstrip

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-12-17 11:54:50 +01:00
Andy Walsh 1298a4ceda samba4: make host-buildtools private/add suffix
* fix openwrt/packages#10700
* add suffix to asn1_compile, compile_et to avoid krb5 conflicts
* bundle samba's com_err

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-12-03 16:06:07 +01:00
Andy Walsh 226e0c6497 samba4: update to 4.9.16, remove AD-DC/Winbind options
* update to 4.9.16
* cherry-pick some musl alpine/openembedded patches
* cleanup/remove AD-DC/Winbind options and related code
* build the compile_et via samba4/host

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-11-28 17:11:55 +01:00
Andy Walsh ec3225b495 samba4: add UCI option 'disable_async_io'
* add UCI option 'disable_async_io'
* remove [homes] options

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-11-22 13:54:24 +01:00
Andy Walsh d08b1279eb samba4: update to 4.9.15
* update to 4.9.15
* fixes CVE-2019-10218, CVE-2019-14833, CVE-2019-14847
* update smb.conf.template (aio, sendfile)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
2019-11-08 13:21:45 +01:00