VFS WORM module

Marc Muehlfeld samba at marc-muehlfeld.de
Mon Sep 16 22:35:19 CEST 2013


Am 16.09.2013 22:30, schrieb Richard Sharpe:
>>> 1. Use ACLs and add an OWNER RIGHTS ACE that denies any DELETE or
>>> WRITE-like access rights.
>>
>> But this wouldn't allow to do any changes in a defined grace period
>> after the files where placed on the share.
> 
> Well, what you want in that case is not a Write Once Read Many share,
> what you want is a Write during grace period, read only after that :-)

I think if implemented in a VFS module, the time should be configurable.
It set to 0, then it's WORM. Otherwise "Write during grace period, read
only after". :-)




>>> 2. Add a VFS module that implements CreateFile or open that disallows
>>> opening for write any existing file.
>>
>> - Is there already a module that does something similar and can be
>> easily adapted to provide a kind of WORM feature? I saw
>> source3/modules/vfs_readonly.c, what maybe could be an entry for a solution.
>> - Can this be done by some who is familiar with C? Or should it be
>> better done by someone who is Samba code experienced?
>> - Do you guess it's much work? 1, 2, 3 weeks,...?
> 
> Less than one week for someone who can spend their full time on it.

Thank you for that information.



Regards,
Marc


More information about the samba-technical mailing list