can_delete & can_write_to_file

Jeremy Allison jra at samba.org
Mon Jun 20 17:13:50 GMT 2005


On Mon, Jun 20, 2005 at 12:38:56PM +0200, Christoph Klein wrote:
> Hello,
> during testing my vfs module (i hope i find the time to put the first
> bits of it onto sourceforge this week) i encountered some problems with the functions: can_write_to_file and can_delete_file_in_directory. They pretend to emulate in-kernel access checks, but take only mode bits and posix acls into
> account. Wouldn't it be wise to move these functions into the vfs, so you
> could override it for other right-semantics?
> Concerning ntacl-lsm: Up to now i found a version of ntacl-lsm that implements only a hook for unlinking files, but does no access check. How do you want to resolve SIDs to UIDs within the kernel?

Actually Volker already complained about this - Volker - if you still have
that proposed patch can you send it to me ?

Thanks,

	Jeremy.


More information about the samba-technical mailing list