[PATCH] ACLs by file type on samba

Jeremy Allison jra at samba.org
Thu Oct 2 18:34:34 GMT 2003


On Thu, Oct 02, 2003 at 12:00:58PM -0300, Elcio Mello wrote:
> 
> Hello everybody!
> 
> I'm working on my first patch to samba, and would like to share it with you.
> Well, I was needing of something to control the file type that my users can 
> write in their folder on samba server, so I wrote some code to do this, it is 
> in the begin status.
> 
> What is it?
> It is a funciton called acl_filetype(), it is called from real_write_file() 
> function;
> After write a file, it check the file type and compare with the acl.conf which 
> contens a list of file types denied, then log it if the file type is in the 
> list.
> 
> This patch just log what happen, I'm working for what to do with it, If I will  
> delete the file or put it on a spool for another apliction do the delete.

Hi Elcio,

	Thanks for posting the patch. We probably won't accept this for
inclusion in the official Samba sources as it affects some of the core codepath
functionality a little too much.

How about developing it as a VFS plugin module instead ? That may make it easier
for you to achieve what you want to do.

Regards,

	Jeremy Allison,
	Samba Team.



More information about the samba-technical mailing list