[SCM] Samba Shared Repository - branch master updated

2021-05-21 Thread Ralph Böhme
The branch, master has been updated
   via  570ec75c7e8 s3/smbd: Fix stray line introduced in 
470b6223e7283ce1308e0b273eb893d20ab72d5b
  from  5a976b42f07 s3: smbd: Change set_create_timespec_ea() to take the 
existing fsp.

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


- Log -
commit 570ec75c7e8af49cee3a12ab20f97663d3b92ddf
Author: Noel Power 
Date:   Fri May 21 08:54:42 2021 +0100

s3/smbd: Fix stray line introduced in 
470b6223e7283ce1308e0b273eb893d20ab72d5b

Signed-off-by: Noel Power 
Reviewed-by: Ralph Boehme 

Autobuild-User(master): Ralph Böhme 
Autobuild-Date(master): Fri May 21 14:14:38 UTC 2021 on sn-devel-184

---

Summary of changes:
 source3/smbd/reply.c | 1 -
 1 file changed, 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index f7b0fe72f13..4ba3b0ee624 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -7587,7 +7587,6 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
status = NT_STATUS_NO_MEMORY;
goto out;
}
-   if (smb_fname_dst_in)
 
/*
 * Check for special case with case preserving and not


-- 
Samba Shared Repository



[SCM] Samba Shared Repository - branch v4-13-test updated

2021-05-21 Thread Karolin Seeger
The branch, v4-13-test has been updated
   via  abcddbae481 s3: smbd: Ensure POSIX default ACL is mapped into 
returned Windows ACL for directory handles.
  from  46c071544f1 VERSION: Bump version up to 4.13.10...

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


- Log -
commit abcddbae481034e35da7062e46ac86bc1c0b37d1
Author: Jeremy Allison 
Date:   Mon May 17 15:34:55 2021 -0700

s3: smbd: Ensure POSIX default ACL is mapped into returned Windows ACL for 
directory handles.

Remove knownfail.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14708

Signed-off-by: Jeremy Allison 
Reviewed-by: Noel Power 

Autobuild-User(master): Noel Power 
Autobuild-Date(master): Wed May 19 09:22:56 UTC 2021 on sn-devel-184

(cherry picked from commit b7f62e13933da14c381f70cd46ad13849b108e68)

Autobuild-User(v4-13-test): Karolin Seeger 
Autobuild-Date(v4-13-test): Fri May 21 08:50:20 UTC 2021 on sn-devel-184

---

Summary of changes:
 source3/smbd/posix_acls.c | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index db2d36a89a1..1e39261828b 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3475,6 +3475,7 @@ NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, 
uint32_t security_info,
 {
SMB_STRUCT_STAT sbuf;
SMB_ACL_T posix_acl = NULL;
+   SMB_ACL_T def_acl = NULL;
struct pai_val *pal;
TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
@@ -3493,10 +3494,19 @@ NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, 
uint32_t security_info,
/* Get the ACL from the fd. */
posix_acl = SMB_VFS_SYS_ACL_GET_FD(fsp, frame);
 
+   /* If it's a directory get the default POSIX ACL. */
+   if(fsp->fsp_flags.is_directory) {
+   def_acl = SMB_VFS_SYS_ACL_GET_FILE(fsp->conn,
+  fsp->fsp_name,
+  SMB_ACL_TYPE_DEFAULT,
+  frame);
+   def_acl = free_empty_sys_acl(fsp->conn, def_acl);
+   }
+
pal = fload_inherited_info(fsp);
 
status = posix_get_nt_acl_common(fsp->conn, fsp->fsp_name->base_name,
-, pal, posix_acl, NULL,
+, pal, posix_acl, def_acl,
 security_info, mem_ctx, ppdesc);
TALLOC_FREE(frame);
return status;


-- 
Samba Shared Repository



[SCM] Samba Shared Repository - branch v4-14-test updated

2021-05-21 Thread Karolin Seeger
The branch, v4-14-test has been updated
   via  42726c3f665 s3: smbd: Ensure POSIX default ACL is mapped into 
returned Windows ACL for directory handles.
  from  5611a6999c0 lib:replace: Do not build strndup test with gcc 11 or 
newer

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


- Log -
commit 42726c3f665516a22006e2c6af8367ab377e15c4
Author: Jeremy Allison 
Date:   Mon May 17 15:34:55 2021 -0700

s3: smbd: Ensure POSIX default ACL is mapped into returned Windows ACL for 
directory handles.

Remove knownfail.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14708

Signed-off-by: Jeremy Allison 
Reviewed-by: Noel Power 

Autobuild-User(master): Noel Power 
Autobuild-Date(master): Wed May 19 09:22:56 UTC 2021 on sn-devel-184

(cherry picked from commit b7f62e13933da14c381f70cd46ad13849b108e68)

Autobuild-User(v4-14-test): Karolin Seeger 
Autobuild-Date(v4-14-test): Fri May 21 07:59:08 UTC 2021 on sn-devel-184

---

Summary of changes:
 source3/smbd/posix_acls.c | 12 +++-
 1 file changed, 11 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index c1d5b7cd047..473223ea133 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -3432,6 +3432,7 @@ NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, 
uint32_t security_info,
 {
SMB_STRUCT_STAT sbuf;
SMB_ACL_T posix_acl = NULL;
+   SMB_ACL_T def_acl = NULL;
struct pai_val *pal;
TALLOC_CTX *frame = talloc_stackframe();
NTSTATUS status;
@@ -3450,10 +3451,19 @@ NTSTATUS posix_fget_nt_acl(struct files_struct *fsp, 
uint32_t security_info,
/* Get the ACL from the fd. */
posix_acl = SMB_VFS_SYS_ACL_GET_FD(fsp, frame);
 
+   /* If it's a directory get the default POSIX ACL. */
+   if(fsp->fsp_flags.is_directory) {
+   def_acl = SMB_VFS_SYS_ACL_GET_FILE(fsp->conn,
+  fsp->fsp_name,
+  SMB_ACL_TYPE_DEFAULT,
+  frame);
+   def_acl = free_empty_sys_acl(fsp->conn, def_acl);
+   }
+
pal = fload_inherited_info(fsp);
 
status = posix_get_nt_acl_common(fsp->conn, fsp->fsp_name->base_name,
-, pal, posix_acl, NULL,
+, pal, posix_acl, def_acl,
 security_info, mem_ctx, ppdesc);
TALLOC_FREE(frame);
return status;


-- 
Samba Shared Repository