1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:rpc_server: pass session_info to get_nt_acl_no_snum()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Ralph Boehme 2019-12-16 14:41:03 +01:00
parent 7fb188c119
commit d68d8c6538
3 changed files with 7 additions and 2 deletions

View 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);

View 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)
{

View 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,