[SCM] Samba Shared Repository - branch master updated

2022-09-07 Thread Jeremy Allison
The branch, master has been updated
   via  c2e235efd40 s3:modules - fix read of uninitialized memory
   via  1dc8a996a34 ntlm_auth: Remove an unused #include
   via  f1050f5ba84 torture3: Pass NULL to ReadDirName
   via  4a54e3f28f7 smbd: Remove an unused variable
   via  04e127d952b torture3: Remove an unused variable
   via  5a4098ae60a smbd: Remove unused variables
   via  d74a5a7c741 smbd: Shorten long lines
   via  f14a45275be smbtorture3: Avoid an "else"
   via  47e2df56f6d ldb: Fix a typo
   via  9aca11a71a4 ldb: Fix a typo
   via  9d432f3c1a4 librpc: Simplify ndr_size_dom_sid28()
   via  2ae7ad97ab2 librpc: Simplify ndr_size_dom_sid28()
   via  c3855fb6823 smbd: Save a few lines by using tevent_req_nterror()'s 
retval
  from  5a4b050ff7b samba-tool ntacl: better messages for missing files

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit c2e235efd402719f963b0147f795aacf86878bd7
Author: Andrew Walker 
Date:   Tue Sep 6 16:45:58 2022 -0400

s3:modules - fix read of uninitialized memory

For loop accesses entry->next after entry
has been removed from list in glfs_clear_preopened().

Signed-off-by: Andrew Walker 
Reviewed-by: Jeremy Allison 

Autobuild-User(master): Jeremy Allison 
Autobuild-Date(master): Wed Sep  7 19:40:17 UTC 2022 on sn-devel-184

commit 1dc8a996a341868091840bdb1479b7a02f2766cd
Author: Volker Lendecke 
Date:   Tue Sep 6 20:52:27 2022 +0200

ntlm_auth: Remove an unused #include

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit f1050f5ba840ab27db6730d9f54eae184ed93d41
Author: Volker Lendecke 
Date:   Tue Sep 6 10:43:29 2022 +0200

torture3: Pass NULL to ReadDirName

Do the necessary fstat manually

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 4a54e3f28f7e4f80250203febd3ef74390235e3e
Author: Volker Lendecke 
Date:   Tue Sep 6 09:29:18 2022 +0200

smbd: Remove an unused variable

ReadDirName happily takes NULL for "sbuf"

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 04e127d952b36f5ae1039f688bca6e678a2f211a
Author: Volker Lendecke 
Date:   Tue Sep 6 09:16:14 2022 +0200

torture3: Remove an unused variable

ReadDirName happily takes NULL for "sbuf"

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 5a4098ae60aeec7e1ffd7ccff13156e360871a62
Author: Volker Lendecke 
Date:   Tue Sep 6 09:07:31 2022 +0200

smbd: Remove unused variables

ReadDirName happily takes NULL for "sbuf"

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit d74a5a7c741e5351e844b384e53d13af04ac102a
Author: Volker Lendecke 
Date:   Mon Sep 5 15:31:19 2022 +0200

smbd: Shorten long lines

This code is young enough to justify a README.Coding patch, at least
IMO.

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit f14a45275be4a0276d6eaec77221e756035bcbf6
Author: Volker Lendecke 
Date:   Mon Sep 5 13:08:54 2022 +0200

smbtorture3: Avoid an "else"

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 47e2df56f6d9534fb89cd18a939abe750ed8952c
Author: Volker Lendecke 
Date:   Tue Sep 6 12:35:20 2022 +0200

ldb: Fix a typo

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 9aca11a71a4239af089064fb7795c15791c989a3
Author: Volker Lendecke 
Date:   Tue Sep 6 12:15:14 2022 +0200

ldb: Fix a typo

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 9d432f3c1a4e20ac85e0affa5336cf81412db464
Author: Volker Lendecke 
Date:   Wed Aug 31 17:35:42 2022 +0200

librpc: Simplify ndr_size_dom_sid28()

Don't duplicate the calculation

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit 2ae7ad97ab2837df96a979073c7462b689ac0038
Author: Volker Lendecke 
Date:   Wed Aug 31 17:35:03 2022 +0200

librpc: Simplify ndr_size_dom_sid28()

all_zero() treats a NULL pointer as true.

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

commit c3855fb6823ca49189659663232bfc380e197a7c
Author: Volker Lendecke 
Date:   Thu Sep 1 12:30:57 2022 +0200

smbd: Save a few lines by using tevent_req_nterror()'s retval

Signed-off-by: Volker Lendecke 
Reviewed-by: Jeremy Allison 

---

Summary of changes:
 lib/ldb/common/ldb_dn.c |  4 ++--
 lib/ldb/include/ldb.h   |  2 +-
 librpc/ndr/ndr_sec_helper.c |  5 +
 source3/modules/vfs_glusterfs.c |  1 +
 source3/smbd/close.c| 10 -
 source3/smbd/dir.c  |  3 +--
 source3/smbd/files.c| 13 +++
 source3/smbd/smb2_aio.c |  6 ++---
 s

[SCM] Samba Shared Repository - branch v4-16-stable updated

2022-09-07 Thread Jule Anger
The branch, v4-16-stable has been updated
   via  c034f061d9c VERSION: Disable GIT_SNAPSHOT for the 4.16.5 release.
   via  c579b735520 WHATSNEW: Add release notes for Samba 4.16.5.
   via  1761ad3dff2 smbd: check for streams support in unix_convert()
   via  7c83b7788ec smbd: return NT_STATUS_OBJECT_NAME_INVALID if a share 
doesn't support streams
   via  b807f3624d1 smbtorture: add a test trying to create a stream on 
share without streams support
   via  bc81ebe3e39 smbd: implement access checks for SMB2-GETINFO as per 
MS-SMB2 3.3.5.20.1
   via  6e091cc59ac smbtorture: check required access for SMB2-GETINFO
   via  d89294ecfc7 s4/libcli/smb2: avoid using 
smb2_composite_setpathinfo() in smb2_util_setatr()
   via  1d244421838 smbd: directly pass fsp to SMB_VFS_FGETXATTR() in 
fget_ea_dos_attribute()
   via  5a9aa7aa84e smbd: add and use vfs_fget_dos_attributes()
   via  3d54c1b6ebc smbtorture: add test smb2.stream.attributes2
   via  6ee18ad9eaf smbtorture: rename smb2.streams.attributes to 
smb2.streams.attributes1
   via  a13748d2427 vfs_default: assert all passed in fsp's and names are 
non-stream type
   via  e661087a9e2 vfs_streams_xattr: restrict which fcntl's are allowed 
on streams
   via  06b5438132e smbd: skip access checks for stat-opens on streams in 
open_file()
   via  2ae309348ad smbd: use metadata_fsp() in get_acl_group_bits()
   via  8d0581a8ab1 smbd: ignore request to set the SPARSE attribute on 
streams
   via  39129be4fef smbd: use metadata_fsp() with 
SMB_VFS_FSET_DOS_ATTRIBUTES()
   via  eab9c65b075 smbd: use metadata_fsp() with 
SMB_VFS_FGET_DOS_ATTRIBUTES()
   via  11947a8e59a smbd: use metadata_fsp() with SMB_VFS_FSET_NT_ACL()
   via  9823e919994 smbd: use metadata_fsp() with SMB_VFS_FGET_NT_ACL()
   via  3e6566222c9 CI: add a test trying to delete a stream on a pathref 
("stat open") handle
   via  00ce839865c vfs_xattr_tdb: add "xattr_tdb:ignore_user_xattr" option
   via  6d66f432297 vfs_xattr_tdb: add a module config
   via  b83ff1252ed vfs_xattr_tdb: move close_xattr_db()
   via  56ab8361573 smdb: use fsp_is_alternate_stream() in open_file()
   via  20a425fcde0 smbd: Introduce metadata_fsp()
   via  3160ff28e87 smbd: Introduce fsp_is_alternate_stream()
   via  df7d6f0c486 lib:replace: Only include  on non-Linux 
systems
   via  ce464a83c76 s3: smbd: Plumb close_type parameter through 
close_file_in_loop(), file_close_conn()
   via  a5cf33d4041 s3: smbd: Add "enum file_close_type close_type" 
parameter to file_close_conn().
   via  706c64c6f0e s3: smbd: Add "enum file_close_type close_type" 
parameter to close_cnum().
   via  d1bc0d0b51b s3/smbd: Use after free when iterating 
smbd_server_connection->connections
   via  56e1a9fc623 s3/smbd: Use after free when iterating 
smbd_server_connection->connections
   via  9cb40437278 s3:smbd: only clear LEASE_READ if there's no read lease 
is left
   via  b910d9f6e00 s4:torture/smb2: add smb2.lease.v[1,2]_bug_15148
   via  19f285e0809 s3:smbd: share_mode_flags_set() takes SMB2_LEASE_* 
values
   via  f6afc5b35e7 libcli/smb: Set error status if 'iov' pointer is NULL
   via  f33ad1c1725 libcli/smb: Ensure we call tevent_req_nterror() on 
failure
   via  b75b5f60ba3 s3/util/py_net.c: fix samba-tool domain join&leave 
segfault
   via  529e86163a3 s3:rpcclient: Goto done in cmd_samr_setuserinfo_int()
   via  e10ce26dcbd mdssvc: return all-zero policy handle if spotlight is 
disabled
   via  5598ddaaf46 CI: fix check for correct mdsvc resonse when connecting 
to a share with Spotlight disabled
   via  5fd138ad809 mdssvc: convert mds_init_ctx() to return NTSTATUS
   via  ae0977177bd VERSION: Bump version up to Samba 4.16.5...
  from  9618af1b66a VERSION: Disable GIT_SNAPSHOT for the 4.16.4 release.

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-16-stable


- Log -
---

Summary of changes:
 VERSION|   2 +-
 WHATSNEW.txt   |  67 +-
 lib/replace/system/filesys.h   |   4 +-
 lib/replace/wscript|   3 +
 libcli/smb/smbXcli_base.c  |  12 +-
 selftest/knownfail |   3 +-
 selftest/target/Samba3.pm  |   7 +
 source3/include/proto.h|   3 +
 source3/modules/vfs_default.c  |  94 +---
 source3/modules/vfs_streams_xattr.c|  33 +++
 source3/modules/vfs_xattr_tdb.c| 293 ++-
 source3/rpc_server/mdssvc/mdssvc.c |  40 ++--
 source3/rpc_server/mdssvc/mdssvc.h |  15 +-
 source3/rpc_server/mdssvc/srv_mdssvc_nt.c  |  28 ++-
 source3/rpc_server/srvsvc/srv_srvsvc_nt.c  |   2 +-
 source3/rpcclient/cmd_sam

[SCM] Samba Website Repository - branch master updated

2022-09-07 Thread Jule Anger
The branch, master has been updated
   via  2f362d9 NEWS[4.16.5]: Samba 4.16.5 Available for Download
  from  1c6c0d9 NEWS[4.17.0rc5]: Samba 4.17.0rc5 Available for Download

https://git.samba.org/?p=samba-web.git;a=shortlog;h=master


- Log -
commit 2f362d9efd010c95ccbbf7de420b210f029a8107
Author: Jule Anger 
Date:   Wed Sep 7 20:58:37 2022 +0200

NEWS[4.16.5]: Samba 4.16.5 Available for Download

Signed-off-by: Jule Anger 

---

Summary of changes:
 history/header_history.html  |  1 +
 history/samba-4.16.5.html| 62 
 posted_news/20220907-185953.4.16.5.body.html | 13 +
 posted_news/20220907-185953.4.16.5.headline.html |  3 ++
 4 files changed, 79 insertions(+)
 create mode 100644 history/samba-4.16.5.html
 create mode 100644 posted_news/20220907-185953.4.16.5.body.html
 create mode 100644 posted_news/20220907-185953.4.16.5.headline.html


Changeset truncated at 500 lines:

diff --git a/history/header_history.html b/history/header_history.html
index 523e9f3..4a4e2b2 100755
--- a/history/header_history.html
+++ b/history/header_history.html
@@ -9,6 +9,7 @@
Release Notes


+   samba-4.16.5
samba-4.16.4
samba-4.16.3
samba-4.16.2
diff --git a/history/samba-4.16.5.html b/history/samba-4.16.5.html
new file mode 100644
index 000..32ff773
--- /dev/null
+++ b/history/samba-4.16.5.html
@@ -0,0 +1,62 @@
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+http://www.w3.org/1999/xhtml";>
+
+Samba 4.16.5 - Release Notes
+
+
+Samba 4.16.5 Available for Download
+
+https://download.samba.org/pub/samba/stable/samba-4.16.5.tar.gz";>Samba 
4.16.5 (gzipped)
+https://download.samba.org/pub/samba/stable/samba-4.16.5.tar.asc";>Signature
+
+
+https://download.samba.org/pub/samba/patches/samba-4.16.4-4.16.5.diffs.gz";>Patch
 (gzipped) against Samba 4.16.4
+https://download.samba.org/pub/samba/patches/samba-4.16.4-4.16.5.diffs.asc";>Signature
+
+
+
+   ==
+   Release Notes for Samba 4.16.5
+ September 07, 2022
+   ==
+
+
+This is the latest stable release of the Samba 4.16 release series.
+
+
+Changes since 4.16.4
+
+
+o  Jeremy Allison <j...@samba.org>
+   * BUG 15128: Possible use after free of connection_struct when iterating
+ smbd_server_connection->connections.
+
+o  Ralph Boehme <s...@samba.org>
+   * BUG 15086: Spotlight RPC service returns wrong response when Spotlight is
+ disabled on a share.
+   * BUG 15126: acl_xattr VFS module may unintentionally use filesystem
+ permissions instead of ACL from xattr.
+   * BUG 15153: Missing SMB2-GETINFO access checks from MS-SMB2 3.3.5.20.1.
+   * BUG 15161: assert failed: !is_named_stream(smb_fname)") at
+ ../../lib/util/fault.c:197.
+
+o  Stefan Metzmacher <me...@samba.org>
+   * BUG 15148: Missing READ_LEASE break could cause data corruption.
+
+o  Andreas Schneider <a...@samba.org>
+   * BUG 15124: rpcclient can crash using setuserinfo(2).
+   * BUG 15132: Samba fails to build with glibc 2.36 caused by including
+ <sys/mount.h> in libreplace.
+
+o  Joseph Sutton <josephsut...@catalyst.net.nz>
+   * BUG 15152: SMB1 negotiation can fail to handle connection errors.
+
+o  Michael Tokarev <m...@tls.msk.ru>
+   * BUG 15078: samba-tool domain join segfault when joining a samba ad domain.
+
+
+
+
+
+
diff --git a/posted_news/20220907-185953.4.16.5.body.html 
b/posted_news/20220907-185953.4.16.5.body.html
new file mode 100644
index 000..0391d39
--- /dev/null
+++ b/posted_news/20220907-185953.4.16.5.body.html
@@ -0,0 +1,13 @@
+
+07 September 2022
+Samba 4.16.5 Available for Download
+
+This is the latest stable release of the Samba 4.16 release series.
+
+
+The uncompressed tarball has been signed using GnuPG (ID AA99442FB680B620).
+The source code can be https://download.samba.org/pub/samba/stable/samba-4.16.5.tar.gz";>downloaded
 now.
+A https://download.samba.org/pub/samba/patches/samba-4.16.4-4.16.5.diffs.gz";>patch
 against Samba 4.16.4 is also available.
+See https://www.samba.org/samba/history/samba-4.16.5.html";>the 
release notes for more info.
+
+
diff --git a/posted_news/20220907-185953.4.16.5.headline.html 
b/posted_news/20220907-185953.4.16.5.headline.html
new file mode 100644
index 000..ab9ced5
--- /dev/null
+++ b/posted_news/20220907-185953.4.16.5.headline.html
@@ -0,0 +1,3 @@
+
+ 07 September 2022 Samba 4.16.5 Available for 
Download
+


-- 
Samba Website Repository



[SCM] Samba Shared Repository - annotated tag samba-4.16.5 created

2022-09-07 Thread Jule Anger
The annotated tag, samba-4.16.5 has been created
at  c17fca8af5a563186df667cfcab2aac26dc3639e (tag)
   tagging  c034f061d9c35f7fb0a83938cc08fd49f61c6d38 (commit)
  replaces  samba-4.16.4
 tagged by  Jule Anger
on  Wed Sep 7 20:54:34 2022 +0200

- Log -
samba: tag release samba-4.16.5
-BEGIN PGP SIGNATURE-

iQIzBAABCgAdFiEEgfXigyvSVFoYl7cTqplEL7aAtiAFAmMY6OsACgkQqplEL7aA
tiA6Yw/8C6pmda5+UUvqdlHxLZlixMOdOfsjXoNbZlVrTBPBSqv8xGUWb/RobMuL
G1I47yxqW3PpSvEsVrPhKC07hXJDvnI8XZD6d5ZO2Y+KoadRAuAx/CSMg8Nq2ZrS
jcOuWZaqcuiM6N1pZRNhlBScoqAb5JxccF29N9s946s+4AyLZZhQI40w9xZ9ictm
aOLTQwqKw9hHBFVI8iL+kKYV+8ZhdkF6xqxy+u7ahzA1x2lwT7b5spcMcMSYRmmD
acBx4Uq+HZ/a2BifmGhKYHargJBtjqB1ty4iP4dM3BQanHYe9LZkl9i7rXrZZ+5k
15nkAjwUvezEfyLuORw8lA4W94T2cg9ITlRM4W+EH6lJOKHL6fH+dvIHdsCS9sBM
WFKR8hcuiab2vNLo1RVr/mliOS+RLFjPJKBKM96Cw6xSM99k1pi52oRU1WEkgl+O
4IBmKBsRn2rIYec2Nzim+/UR4LdzH15RfHfxVr9ErsJmORn/T8Rp+mQZOF258hQq
k3GuV4rEbxR0N/3LexV98MSPt7GVJmGzjs85rtFmlh+LbCxPQT3ZQ2BKs/cqren6
jskmEVkCVuo1Fw5sVxXeO8SHKTURu5Cec/U+fWPvQe8vp69I5nl7A339fXq/JcOv
htdw0R54bo9uWRwcFvP7zNrOIAoWiNFuhVekaEcKgzNCATMlsfs=
=sMqo
-END PGP SIGNATURE-

Andreas Schneider (2):
  s3:rpcclient: Goto done in cmd_samr_setuserinfo_int()
  lib:replace: Only include  on non-Linux systems

Jeremy Allison (5):
  s3/smbd: Use after free when iterating smbd_server_connection->connections
  s3/smbd: Use after free when iterating smbd_server_connection->connections
  s3: smbd: Add "enum file_close_type close_type" parameter to close_cnum().
  s3: smbd: Add "enum file_close_type close_type" parameter to 
file_close_conn().
  s3: smbd: Plumb close_type parameter through close_file_in_loop(), 
file_close_conn()

Joseph Sutton (2):
  libcli/smb: Ensure we call tevent_req_nterror() on failure
  libcli/smb: Set error status if 'iov' pointer is NULL

Jule Anger (3):
  VERSION: Bump version up to Samba 4.16.5...
  WHATSNEW: Add release notes for Samba 4.16.5.
  VERSION: Disable GIT_SNAPSHOT for the 4.16.5 release.

Michael Tokarev (1):
  s3/util/py_net.c: fix samba-tool domain join&leave segfault

Ralph Boehme (27):
  mdssvc: convert mds_init_ctx() to return NTSTATUS
  CI: fix check for correct mdsvc resonse when connecting to a share with 
Spotlight disabled
  mdssvc: return all-zero policy handle if spotlight is disabled
  smdb: use fsp_is_alternate_stream() in open_file()
  vfs_xattr_tdb: move close_xattr_db()
  vfs_xattr_tdb: add a module config
  vfs_xattr_tdb: add "xattr_tdb:ignore_user_xattr" option
  CI: add a test trying to delete a stream on a pathref ("stat open") handle
  smbd: use metadata_fsp() with SMB_VFS_FGET_NT_ACL()
  smbd: use metadata_fsp() with SMB_VFS_FSET_NT_ACL()
  smbd: use metadata_fsp() with SMB_VFS_FGET_DOS_ATTRIBUTES()
  smbd: use metadata_fsp() with SMB_VFS_FSET_DOS_ATTRIBUTES()
  smbd: ignore request to set the SPARSE attribute on streams
  smbd: use metadata_fsp() in get_acl_group_bits()
  smbd: skip access checks for stat-opens on streams in open_file()
  vfs_streams_xattr: restrict which fcntl's are allowed on streams
  vfs_default: assert all passed in fsp's and names are non-stream type
  smbtorture: rename smb2.streams.attributes to smb2.streams.attributes1
  smbtorture: add test smb2.stream.attributes2
  smbd: add and use vfs_fget_dos_attributes()
  smbd: directly pass fsp to SMB_VFS_FGETXATTR() in fget_ea_dos_attribute()
  s4/libcli/smb2: avoid using smb2_composite_setpathinfo() in 
smb2_util_setatr()
  smbtorture: check required access for SMB2-GETINFO
  smbd: implement access checks for SMB2-GETINFO as per MS-SMB2 3.3.5.20.1
  smbtorture: add a test trying to create a stream on share without streams 
support
  smbd: return NT_STATUS_OBJECT_NAME_INVALID if a share doesn't support 
streams
  smbd: check for streams support in unix_convert()

Stefan Metzmacher (3):
  s3:smbd: share_mode_flags_set() takes SMB2_LEASE_* values
  s4:torture/smb2: add smb2.lease.v[1,2]_bug_15148
  s3:smbd: only clear LEASE_READ if there's no read lease is left

Volker Lendecke (2):
  smbd: Introduce fsp_is_alternate_stream()
  smbd: Introduce metadata_fsp()

---


-- 
Samba Shared Repository