[Win32utils-devel] Help needed for get_permissions

Heesob Park phasis at gmail.com
Fri Nov 30 22:48:10 UTC 2012


Hi,

2012/12/1 Daniel Berger <djberg96 at gmail.com>

> On Thu, Nov 29, 2012 at 8:23 PM, Heesob Park <phasis at gmail.com> wrote:
> > Hi,
> >
> > 2012/11/30 Daniel Berger <djberg96 at gmail.com>:
> >> I'm working on the win32-file-security lib (the security functions
> >> split out from win32-file), but I'm stuck on the get_permissions
> >> method conversion to FFI. Specifically, the ACL struct doesn't seem to
> >> get filled with correct values on the call to
> >> GetSecurityDescriptorDacl. They're junk.
> >>
> >> I've tried creating a new ACL from the pointer, but that didn't seem
> >> to work. Any ideas?
> >>
> > I guess you have some trouble for the pointer of pointer.
> >
> > Here is a working code:
> >
> ...
> Thanks!
>
> I think I'm stuck again, this time the SidStart member of the
> ACCESS_ALLOWED_ACE struct isn't valid. Can you please take a look?
>
> git clone https://github.com/djberg96/win32-file-security.git
>
>
> The LookupAccountSidW call should be

          val = LookupAccountSidW(
            wide_host,
            ace_pptr.read_pointer+8,
            name,
            name_size,
            domain,
            domain_size,
            use_ptr
)

Regards,

Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20121201/80684ece/attachment.html>


More information about the win32utils-devel mailing list