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

s3:smbd:vfs: Change smb_get_nt_acl_nfs4() to take a const struct smb_filename *.

Push the struct further down closer to places that use
lp_posix_pathname() functions.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <rb@sernet.de>
This commit is contained in:
Jeremy Allison 2016-03-10 15:56:51 -08:00
parent 6d9e7ad3de
commit cb7016594a
6 changed files with 9 additions and 8 deletions

View File

@ -557,7 +557,7 @@ NTSTATUS smb_fget_nt_acl_nfs4(files_struct *fsp,
}
NTSTATUS smb_get_nt_acl_nfs4(struct connection_struct *conn,
const char *name,
const struct smb_filename *smb_fname,
uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc,
@ -566,9 +566,10 @@ NTSTATUS smb_get_nt_acl_nfs4(struct connection_struct *conn,
SMB_STRUCT_STAT sbuf;
smbacl4_vfs_params params;
DEBUG(10, ("smb_get_nt_acl_nfs4 invoked for %s\n", name));
DEBUG(10, ("smb_get_nt_acl_nfs4 invoked for %s\n",
smb_fname->base_name));
if (smbacl4_GetFileOwner(conn, name, &sbuf)) {
if (smbacl4_GetFileOwner(conn, smb_fname->base_name, &sbuf)) {
return map_nt_error_from_unix(errno);
}

View File

@ -136,7 +136,7 @@ NTSTATUS smb_fget_nt_acl_nfs4(files_struct *fsp,
struct security_descriptor **ppdesc, struct SMB4ACL_T *theacl);
NTSTATUS smb_get_nt_acl_nfs4(connection_struct *conn,
const char *name,
const struct smb_filename *smb_fname,
uint32_t security_info,
TALLOC_CTX *mem_ctx,
struct security_descriptor **ppdesc, struct SMB4ACL_T *theacl);

View File

@ -213,7 +213,7 @@ static NTSTATUS aixjfs2_get_nt_acl(vfs_handle_struct *handle,
return NT_STATUS_ACCESS_DENIED;
return smb_get_nt_acl_nfs4(handle->conn,
smb_fname->base_name,
smb_fname,
security_info,
mem_ctx,
ppdesc,

View File

@ -613,7 +613,7 @@ static NTSTATUS gpfsacl_get_nt_acl(vfs_handle_struct *handle,
result = gpfs_get_nfs4_acl(frame, smb_fname->base_name, &pacl);
if (result == 0) {
status = smb_get_nt_acl_nfs4(handle->conn, smb_fname->base_name,
status = smb_get_nt_acl_nfs4(handle->conn, smb_fname,
security_info, mem_ctx, ppdesc,
pacl);
TALLOC_FREE(frame);

View File

@ -560,7 +560,7 @@ static NTSTATUS nfs4acl_xattr_get_nt_acl(struct vfs_handle_struct *handle,
return status;
}
status = smb_get_nt_acl_nfs4(handle->conn, name, security_info,
status = smb_get_nt_acl_nfs4(handle->conn, smb_fname, security_info,
mem_ctx, ppdesc,
pacl);
TALLOC_FREE(frame);

View File

@ -233,7 +233,7 @@ static NTSTATUS zfsacl_get_nt_acl(struct vfs_handle_struct *handle,
}
status = smb_get_nt_acl_nfs4(handle->conn,
smb_fname->base_name,
smb_fname,
security_info,
mem_ctx,
ppdesc,