From: Ralph Boehme Date: Mon, 16 Dec 2019 13:41:03 +0000 (+0100) Subject: s3:rpc_server: pass session_info to get_nt_acl_no_snum() X-Git-Tag: ldb-2.1.0~178 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=d68d8c6538287a8b6a4bbe4b43bf0621440592d8 s3:rpc_server: pass session_info to get_nt_acl_no_snum() Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/rpc_server/eventlog/srv_eventlog_nt.c b/source3/rpc_server/eventlog/srv_eventlog_nt.c index ce7f42429d4..9d8322adf34 100644 --- a/source3/rpc_server/eventlog/srv_eventlog_nt.c +++ b/source3/rpc_server/eventlog/srv_eventlog_nt.c @@ -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); diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 23aa5b575a0..ce3798dc5f6 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -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) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 6d0fe001762..db1046a2df5 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,