s3:rpc_server: pass session_info to get_nt_acl_no_snum()
authorRalph Boehme <slow@samba.org>
Mon, 16 Dec 2019 13:41:03 +0000 (14:41 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 20 Dec 2019 11:41:41 +0000 (11:41 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/eventlog/srv_eventlog_nt.c
source3/smbd/posix_acls.c
source3/smbd/proto.h

index ce7f42429d4ea8731adb23a32c2cb6f62aee8dc1..9d8322adf346ccf8b1ece2010f257bd3c249addc 100644 (file)
@@ -94,6 +94,7 @@ static bool elog_check_access(EVENTLOG_INFO *info,
        /* get the security descriptor for the file */
 
        status = get_nt_acl_no_snum( info,
+                       session_info,
                        tdbname,
                        SECINFO_OWNER | SECINFO_GROUP | SECINFO_DACL,
                        &sec_desc);
index 23aa5b575a04e9b377e898f494d7c00c4e7ff216..ce3798dc5f65154441c06ab20d2ca756c89f3a97 100644 (file)
@@ -4639,7 +4639,9 @@ NTSTATUS set_unix_posix_acl(connection_struct *conn,
 
 ********************************************************************/
 
-NTSTATUS get_nt_acl_no_snum(TALLOC_CTX *ctx, const char *fname,
+NTSTATUS get_nt_acl_no_snum(TALLOC_CTX *ctx,
+                           struct auth_session_info *session_info,
+                           const char *fname,
                                uint32_t security_info_wanted,
                                struct security_descriptor **sd)
 {
index 6d0fe001762db3f636ab1174484c9a1c99972e83..db1046a2df5545a321c48dedc93efd6b3f226d8a 100644 (file)
@@ -802,7 +802,9 @@ NTSTATUS set_unix_posix_default_acl(connection_struct *conn,
 NTSTATUS set_unix_posix_acl(connection_struct *conn, files_struct *fsp,
                                uint16_t num_acls,
                                const char *pdata);
-NTSTATUS get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname,
+NTSTATUS get_nt_acl_no_snum(TALLOC_CTX *ctx,
+                           struct auth_session_info *session_info,
+                           const char *fname,
                             uint32_t security_info_wanted,
                             struct security_descriptor **sd);
 int posix_sys_acl_blob_get_file(vfs_handle_struct *handle,