Add a new VFS module, that just fiddles the file permissions. Still need to
authorAndrew Bartlett <abartlet@samba.org>
Mon, 30 Dec 2002 04:19:57 +0000 (04:19 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Dec 2002 04:19:57 +0000 (04:19 +0000)
commit72caa1fc8d7161da65ddad011d7d624fe0d9fe0b
treeaf2aac1d5589ad30062801592ab8744bba26e345
parentab42271cd6d17b09409d5c8e5a2c80cf5ae4c1cf
Add a new VFS module, that just fiddles the file permissions.  Still need to
make it fiddle with NT ACLs (or report no ACL, so Samba fakes it up).

The idea here is that Samba reports an NT ACL to Windows clients, which use
that ACL in downloaded profiles.

If the user doesn't have write permissions on the directories being downloaded,
then it cant put the subfolders in (yes, NT will set perms so that it can't
access the dir as the user the created it) and the profile download fails.

The current solution it to give the user unix write perms to the folders, but
this is rather dangerous - sombody could trojen the profile.  This should
avoid that mess.

I'll test this out properly next week, but it works in vfstest (thanks idra!).

Andrew Bartlett
(This used to be commit 1ad782282a3eb4f89c489a77ad8404099d41d0f9)
source3/Makefile.in
source3/modules/vfs_fake_perms.c [new file with mode: 0644]