Merge ~mitchdz/ubuntu/+source/samba:mitch/spotlight_fix into ubuntu/+source/samba:ubuntu/jammy-devel

Proposed by Mitchell Dzurick
Status: Merged
Merged at revision: 0f8326ad0b1b1fbdc2c2f24338ac6f2912fd7674
Proposed branch: ~mitchdz/ubuntu/+source/samba:mitch/spotlight_fix
Merge into: ubuntu/+source/samba:ubuntu/jammy-devel
Diff against target: 70 lines (+48/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch (+40/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Dan Bungert Pending
git-ubuntu import Pending
Review via email: mp+459723@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dan Bungert (dbungert) wrote :

Thanks, uploading.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c40db34..df9d3d3 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+samba (2:4.15.13+dfsg-0ubuntu1.6) jammy; urgency=medium
7+
8+ * d/p/lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch: fix
9+ spotlight search function on macos ventura (LP: #2046994).
10+
11+ -- Mitchell Dzurick <mitchell.dzurick@canonical.com> Fri, 05 Jan 2024 14:23:01 -0700
12+
13 samba (2:4.15.13+dfsg-0ubuntu1.5) jammy-security; urgency=medium
14
15 * SECURITY UPDATE: SMB clients can truncate files with read-only
16diff --git a/debian/patches/lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch b/debian/patches/lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch
17new file mode 100644
18index 0000000..0c3cfde
19--- /dev/null
20+++ b/debian/patches/lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch
21@@ -0,0 +1,40 @@
22+Description: Spotlight search function broken with macOS Ventura and later client Edit
23+In macOS Ventura marshalling of kMDScopeArray in the "openQueryWithParams"
24+request has changed from
25+
26+ string: kMDScopeArray
27+ sl_array_t(#1): {
28+ string: /foo/bar
29+ }
30+
31+
32+to:
33+
34+ string: kMDScopeArray
35+ sl_array_t(#1): {
36+ sl_array_t(#1): {
37+ string: /foo/bar
38+ }
39+ }
40+Author: Ralph Boehme <slow@samba.org>
41+Origin: upstream, https://gitlab.com/samba-team/samba/-/merge_requests/2915
42+Bug: https://bugzilla.samba.org/show_bug.cgi?id=15299
43+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2046994
44+Last-Update: 2024-01-05
45+---
46+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
47+--- a/source3/rpc_server/mdssvc/mdssvc.c
48++++ b/source3/rpc_server/mdssvc/mdssvc.c
49+@@ -996,6 +996,12 @@
50+
51+ scope = dalloc_get(path_scope, "char *", 0);
52+ if (scope == NULL) {
53++ scope = dalloc_get(path_scope,
54++ "DALLOC_CTX", 0,
55++ "char *", 0);
56++ }
57++ if (scope == NULL) {
58++ DBG_ERR("Failed to parse kMDScopeArray\n");
59+ goto error;
60+ }
61+
62diff --git a/debian/patches/series b/debian/patches/series
63index e4f16bf..f05bf50 100644
64--- a/debian/patches/series
65+++ b/debian/patches/series
66@@ -90,3 +90,4 @@ CVE-2023-4154-19.patch
67 CVE-2023-4154-20.patch
68 CVE-2023-4154-21.patch
69 CVE-2023-42669.patch
70+lp2046994-spotlight-doesnt-work-with-latest-macos-ventura.patch

Subscribers

People subscribed via source and target branches