-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1191 from flatcar/dongsu/samba-4.18
net-fs/samba: update to 4.18.4
- Loading branch information
Showing
9 changed files
with
212 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- samba ([CVE-2021-44142](https://nvd.nist.gov/vuln/detail/CVE-2021-44142), [CVE-2022-1615](https://nvd.nist.gov/vuln/detail/CVE-2022-1615)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- samba ([4.18.4](https://wiki.samba.org/index.php/Samba_4.18_Features_added/changed#Samba_4.18.4)) |
2 changes: 1 addition & 1 deletion
2
sdk_container/src/third_party/coreos-overlay/net-fs/samba/Manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DIST samba-4.15.4.tar.gz 19280813 BLAKE2B 3106f2f265263e871fe3f82d3eecaac2e5f642925ff5dd2a9d163092fd13e9348a3910e40431d51cb94a1abeb3b9c32c487ce1f8caebe59a8d6d90641b4d9201 SHA512 e55473dd4971816a01880870309ca44f022625cd529511bcf386c865a2e7e79118577ee4866559f607952de47dc0d310d6426bd08dd4293db95ddbbe3982383d | ||
DIST samba-4.18.4.tar.gz 41311410 BLAKE2B 1f1aab7eb933111b9b1c72af8c3dd379fe34014085129e9d5cc400b4e434742e1c08ad4fdf2a98291d6063ce9b2ddc811e9ab5dbb133a85e97f2158f83dd7c96 SHA512 bc8d792b510061556c07b6844a825801a4271eed45e01133a4718c1839d123e2908fa0e31e67af43098500e98a9082eb104052e711a8a034fac23d86e15c29ee |
12 changes: 12 additions & 0 deletions
12
...r/src/third_party/coreos-overlay/net-fs/samba/files/ldb-2.5.2-skip-wav-tevent-check.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- ldb-1.3.6/lib/tevent/wscript | ||
+++ ldb-1.3.6/lib/tevent/wscript | ||
@@ -34,8 +34,7 @@ | ||
if conf.CHECK_BUNDLED_SYSTEM_PKG('tevent', minversion=VERSION, | ||
onlyif='talloc', implied_deps='replace talloc'): | ||
conf.define('USING_SYSTEM_TEVENT', 1) | ||
- if not conf.env.disable_python and \ | ||
- conf.CHECK_BUNDLED_SYSTEM_PYTHON('pytevent', 'tevent', minversion=VERSION): | ||
+ if not conf.env.disable_python: | ||
conf.define('USING_SYSTEM_PYTEVENT', 1) | ||
|
||
if conf.CHECK_FUNCS('epoll_create', headers='sys/epoll.h'): |
56 changes: 56 additions & 0 deletions
56
...eos-overlay/net-fs/samba/files/samba-4.18.4-bug-15418-windows-update-secure-channel.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
https://bugs.gentoo.org/910306 | ||
https://bugzilla.samba.org/show_bug.cgi?id=15418 | ||
|
||
source3/rpc_server/netlogon/srv_netlog_nt.c | 9 +++++---- | ||
source4/rpc_server/netlogon/dcerpc_netlogon.c | 8 ++++---- | ||
2 files changed, 9 insertions(+), 8 deletions(-) | ||
|
||
--- a/source3/rpc_server/netlogon/srv_netlog_nt.c | ||
+++ b/source3/rpc_server/netlogon/srv_netlog_nt.c | ||
@@ -2284,6 +2284,11 @@ NTSTATUS _netr_LogonGetCapabilities(struct pipes_struct *p, | ||
struct netlogon_creds_CredentialState *creds; | ||
NTSTATUS status; | ||
|
||
+ if (r->in.query_level != 1) { | ||
+ p->fault_state = DCERPC_NCA_S_FAULT_INVALID_TAG; | ||
+ return NT_STATUS_NOT_SUPPORTED; | ||
+ } | ||
+ | ||
become_root(); | ||
status = dcesrv_netr_creds_server_step_check(p->dce_call, | ||
p->mem_ctx, | ||
@@ -2296,10 +2301,6 @@ NTSTATUS _netr_LogonGetCapabilities(struct pipes_struct *p, | ||
return status; | ||
} | ||
|
||
- if (r->in.query_level != 1) { | ||
- return NT_STATUS_NOT_SUPPORTED; | ||
- } | ||
- | ||
r->out.capabilities->server_capabilities = creds->negotiate_flags; | ||
|
||
return NT_STATUS_OK; | ||
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c | ||
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c | ||
@@ -2364,6 +2364,10 @@ static NTSTATUS dcesrv_netr_LogonGetCapabilities(struct dcesrv_call_state *dce_c | ||
struct netlogon_creds_CredentialState *creds; | ||
NTSTATUS status; | ||
|
||
+ if (r->in.query_level != 1) { | ||
+ DCESRV_FAULT(DCERPC_NCA_S_FAULT_INVALID_TAG); | ||
+ } | ||
+ | ||
status = dcesrv_netr_creds_server_step_check(dce_call, | ||
mem_ctx, | ||
r->in.computer_name, | ||
@@ -2375,10 +2379,6 @@ static NTSTATUS dcesrv_netr_LogonGetCapabilities(struct dcesrv_call_state *dce_c | ||
} | ||
NT_STATUS_NOT_OK_RETURN(status); | ||
|
||
- if (r->in.query_level != 1) { | ||
- return NT_STATUS_NOT_SUPPORTED; | ||
- } | ||
- | ||
r->out.capabilities->server_capabilities = creds->negotiate_flags; | ||
|
||
return NT_STATUS_OK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
sdk_container/src/third_party/coreos-overlay/net-fs/samba/files/samba.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
D /run/samba 0755 root root | ||
D /run/ctdb 0755 root root | ||
D /run/lock/samba 0755 root root | ||
d /run/samba | ||
d /run/ctdb | ||
d /run/lock/samba | ||
d /var/cache/samba | ||
d /var/lib/ctdb | ||
d /var/lib/samba/bind-dns | ||
d /var/lib/samba/private | ||
d /var/log/samba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.