[PATCH] vfs_retention: add this module to make a share read only with a special time period.

Li, Dan lidan at cn.fujitsu.com
Wed Oct 11 07:33:06 UTC 2017


Hi, Slow and Jeremy

> not the macros, implement the the corresponding functions from
> vfs_fn_pointers.
Thanks for the explanation, I understand the meaning finally...
In fact I referenced the vfs_fn_pointers from vfs_worm and I think that is enough...

static struct vfs_fn_pointers vfs_worm_fns = {
	.create_file_fn = vfs_worm_create_file,
};


----------------------------------------
以上、よろしくお願いします
李 丹(LI DAN)
Dept. III of Technology and DevelopmentNanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
T: +86-25-86630566-9488
Mail: lidan at cn.fujitsu.com
----------------------------------------


> -----Original Message-----
> From: Ralph Böhme [mailto:slow at samba.org]
> Sent: Wednesday, October 11, 2017 3:03 PM
> To: Li, Dan/李 丹 <lidan at cn.fujitsu.com>
> Cc: Jeremy Allison <jra at samba.org>; samba-technical at lists.samba.org
> Subject: Re: [PATCH] vfs_retention: add this module to make a share read
> only with a special time period.
> 
> On Wed, Oct 11, 2017 at 06:07:44AM +0000, Li, Dan via samba-technical wrote:
> > > In order to truely prevent *all* share modification you need to also
> > > trap and deny SMB_VFS_LINK, SMB_VFS_MKNOD, SMB_VFS_NTIMES, and
> > > SMB_VFS_SYMLINK calls.
> >
> > What should I do to trap these macros?  I am sorry I cannot get your point...
> > I think this module is an individual module which has nothing to
> > modify with all above macros...
> 
> not the macros, implement the the corresponding functions from
> vfs_fn_pointers.
> 
> Cheerio!
> -slow
> 





More information about the samba-technical mailing list