VFS WORM module
realrichardsharpe at gmail.com
Mon Sep 16 22:30:15 CEST 2013
On Mon, Sep 16, 2013 at 1:28 PM, Marc Muehlfeld <samba at marc-muehlfeld.de> wrote:
> Am 16.09.2013 20:23, schrieb Richard Sharpe:
>> I think there are two ways to deal with this:
>> 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 :-)
>> 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.
More information about the samba-technical