diff options
author | Nick Hainke <vincent@systemli.org> | 2022-10-21 14:23:47 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-10-23 01:45:52 +0200 |
commit | 78cbcc77cc33638b185f85c0e40daee1906a2c3c (patch) | |
tree | 82f97db094c73002216177ad4b7e400b3b0257f7 /package/kernel | |
parent | 57577bb8ccaa79adc30e0c4b1f85a88a84e3ebfe (diff) | |
download | upstream-78cbcc77cc33638b185f85c0e40daee1906a2c3c.tar.gz upstream-78cbcc77cc33638b185f85c0e40daee1906a2c3c.tar.bz2 upstream-78cbcc77cc33638b185f85c0e40daee1906a2c3c.zip |
ksmbd: update to 3.4.6
Release Announcement:
https://github.com/cifsd-team/ksmbd/releases/tag/3.4.6
Remove upstreamed:
- 10-fix-build-on-kernel-5.15.52-or-higher.patch
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/ksmbd/Makefile | 4 | ||||
-rw-r--r-- | package/kernel/ksmbd/patches/10-fix-build-on-kernel-5.15.52-or-higher.patch | 69 |
2 files changed, 2 insertions, 71 deletions
diff --git a/package/kernel/ksmbd/Makefile b/package/kernel/ksmbd/Makefile index 0f79644552..86207508e5 100644 --- a/package/kernel/ksmbd/Makefile +++ b/package/kernel/ksmbd/Makefile @@ -1,12 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ksmbd -PKG_VERSION:=3.4.5 +PKG_VERSION:=3.4.6 PKG_RELEASE:=$(AUTORELEASE) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/cifsd-team/cifsd/tar.gz/$(PKG_VERSION)? -PKG_HASH:=2873c8ba1027fc5b04c5f5344804ef1469ad7019a033456c16ca4aa3f2c161f0 +PKG_HASH:=d742992692dbe164060d2a0ea668895ed2b86252f10427db3d3a002df44c445b PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=COPYING diff --git a/package/kernel/ksmbd/patches/10-fix-build-on-kernel-5.15.52-or-higher.patch b/package/kernel/ksmbd/patches/10-fix-build-on-kernel-5.15.52-or-higher.patch deleted file mode 100644 index 68cf168569..0000000000 --- a/package/kernel/ksmbd/patches/10-fix-build-on-kernel-5.15.52-or-higher.patch +++ /dev/null @@ -1,69 +0,0 @@ -From 98bc509f92cccedd7d51d5ebadc424e2d7f5cbb4 Mon Sep 17 00:00:00 2001 -From: Chukun Pan <amadeus@jmu.edu.cn> -Date: Tue, 5 Jul 2022 15:20:10 +0800 -Subject: [PATCH] ksmbd: fixes build on kernel 5.15.52 or higher - -The 5.15.52 kernel downported two commits "fs: remove unused low-level -mapping helpers" and "fs: use low-level mapping helpers", which broken -the compilation[1]. This commit fixed it. - -1. https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.52 - -Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> -Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> ---- - smbacl.c | 6 ++++-- - smbacl.h | 6 ++++-- - 2 files changed, 8 insertions(+), 4 deletions(-) - -diff --git a/smbacl.c b/smbacl.c -index 275e357..19c682a 100644 ---- a/smbacl.c -+++ b/smbacl.c -@@ -281,7 +281,8 @@ static int sid_to_id(struct user_namespace *user_ns, - uid_t id; - - id = le32_to_cpu(psid->sub_auth[psid->num_subauth - 1]); --#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) || \ -+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 52) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) - uid = mapped_kuid_user(user_ns, &init_user_ns, KUIDT_INIT(id)); - #else - /* -@@ -304,7 +305,8 @@ static int sid_to_id(struct user_namespace *user_ns, - gid_t id; - - id = le32_to_cpu(psid->sub_auth[psid->num_subauth - 1]); --#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) || \ -+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 52) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) - gid = mapped_kgid_user(user_ns, &init_user_ns, KGIDT_INIT(id)); - #else - /* -diff --git a/smbacl.h b/smbacl.h -index f2bcdb4..7368bf4 100644 ---- a/smbacl.h -+++ b/smbacl.h -@@ -221,7 +221,8 @@ static inline uid_t posix_acl_uid_translate(struct user_namespace *mnt_userns, - kuid_t kuid; - - /* If this is an idmapped mount, apply the idmapping. */ --#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) || \ -+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 52) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) - kuid = mapped_kuid_fs(mnt_userns, &init_user_ns, pace->e_uid); - #else - kuid = kuid_into_mnt(mnt_userns, pace->e_uid); -@@ -241,7 +242,8 @@ static inline gid_t posix_acl_gid_translate(struct user_namespace *mnt_userns, - kgid_t kgid; - - /* If this is an idmapped mount, apply the idmapping. */ --#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 17, 0) || \ -+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 52) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 16, 0)) - kgid = mapped_kgid_fs(mnt_userns, &init_user_ns, pace->e_gid); - #else - kgid = kgid_into_mnt(mnt_userns, pace->e_gid); --- -2.36.1 - |