access_table() challenge - win a Samba t-shirt!
Luke Kenneth Casson Leighton
lkcl at samba.org
Sun Jan 16 23:29:01 GMT 2000
On Mon, 17 Jan 2000, Michael Glauche wrote:
> Luke Kenneth Casson Leighton wrote:
> >
> > On Mon, 17 Jan 2000, Michael Glauche wrote:
> >
> > oh! i wonder what happens if you convert this to ACL format? what
> > happens if we convert this into an ACL, with execute permissions etc being
> > requested, etc?
> >
> > i wonder if a bitmask is better for this because in NT it _is_ implemented
> > as a bitmask - SEC_ACCESS_EXECUTE; SEC_ACCESS_READ etc!
>
> Well .. it really looks like some tricks with bitmasks ...
> Something like :
> DOS_OPEN_RDONLY = 01
> DOS_OPEN_WRONLY = 10
> DOS_OPEN_RDWR = 11
>
> (so that ..RDONLY + ..WRONLY = RDWR)
ok, so we translate the whole lot into SEC_ACCESS bitmask permissions,
create an ACE-checker (which does SEC_ACCESS_FULL_CONTROL asa special
case), and see what happens.
it should be subdivided around the is_same_process BOOl because that's
just plain weird.
More information about the samba-technical
mailing list