1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

Ensure get/set NT ACL code is redirected through vfs.

Jeremy.
This commit is contained in:
Jeremy Allison -
parent 83f52394e6
commit d43d907c38

View File

@ -1030,7 +1030,7 @@ static BOOL set_sd(files_struct *fsp, char *data, uint32 sd_len, uint security_i
if (psd->off_dacl==0)
security_info_sent &= ~DACL_SECURITY_INFORMATION;
ret = set_nt_acl( fsp, security_info_sent, psd);
ret = fsp->conn->vfs_ops.fset_nt_acl( fsp, fsp->fd, security_info_sent, psd);
if (!ret) {
talloc_destroy(mem_ctx);
@ -1523,7 +1523,7 @@ static int call_nt_transact_query_security_desc(connection_struct *conn,
* Get the permissions to return.
*/
if((sd_size = get_nt_acl(fsp, &psd)) == 0)
if((sd_size = conn->vfs_ops.fget_nt_acl(fsp, fsp->fd, &psd)) == 0)
return(UNIXERROR(ERRDOS,ERRnoaccess));
DEBUG(3,("call_nt_transact_query_security_desc: sd_size = %d.\n",(int)sd_size));