Samba 2.2.0 problems editing ACLs via NT/Win9x

Jeremy Allison jeremy at valinux.com
Fri Jun 8 21:44:17 GMT 2001


Jim McDonough wrote:
> 
> Jim McDonough wrote:
> >I've got (as far as I can tell) one thing left to do to implement the
> >srvsvc 0x27....get the security descriptor from a file name, within
> >srv_srvsvc_nt.c.  Looks like I want the get_nt_acl vfs call...but how
> >should I get to it?
> 
> Ok, think I got it...from the pipes_struct...but how do I get an fsp for a
> filename?

Look at printing/nt_printing.c in the function get_correct_cversion().
It's a little complex, but the example is there.

You need to call  :

open_file_shared().

and remember to close the file and delete the fsp afterwards.

Jeremy.

-- 
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------




More information about the samba-technical mailing list