[PATCH] vfs:recycle: Inherit NT ACLs

Jeremy Allison jra at samba.org
Fri Jun 27 17:18:02 MDT 2014


On Tue, Jun 24, 2014 at 12:36:34AM +0200, Kamen Mazdrashki wrote:
> Hi Jeremy, Metze, Nadya,
> 
> Could you please take a look at following patch from Samuel?
> It allows for acl inheritance in vfs_recycle module.
> http://git.samba.org/?p=kamenim/
> samba.git;a=commitdiff;h=468bf399bea2c76d0c0f9cd4fc5d7e6df85f14c4
> 
> Also attached to this email.

Hi Kamen,

This bit :

> +	/* Generate files_struct for dir */
> +	mode = 00400;
> +
> +	fsp = talloc_zero(frame, struct files_struct);
> +	if (fsp == NULL) {
> +		TALLOC_FREE(frame);
> +		return NT_STATUS_NO_MEMORY;
> +	}
> +	fsp->fh = talloc_zero(fsp, struct fd_handle);
> +	if (fsp->fh == NULL) {
> +		TALLOC_FREE(frame);
> +		return NT_STATUS_NO_MEMORY;
> +	}
> +	fsp->conn = handle->conn;
> +	smb_fname = synthetic_smb_fname_split(frame, dir, NULL);

etc. etc. is *massively* ugly :-). Let me spend
some time thinking if this is remotely allowable,
or violates all manner of layers within the file
server (I'm tending towards the latter :-).

I think you're going to have to go through
SMB_VFS_CREATE_FILE() here...

Jeremy.


More information about the samba-technical mailing list