HomePhorge

(PUP-839) FFI Windows::Util::Security.set_privilege
87f0583490a2Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-839) FFI Windows::Util::Security.set_privilege

  • Don't call LookupPrivilegeValue directly anymore, instead call Puppet::Util::Windows::Process.lookup_privilege_value which has already been FFI'd. Use FFI structs for LUID_AND_ATTRIBUTES and TOKEN_PRIVILEGES
  • Ensure that set_privilege has a well-defined return value of true when it succeeds, or raises otherwise.
  • Remove TOKEN_QUERY privilege since AdjustTokenPrivileges is not filling in a buffer with existing LUID information.

Details

Provenance
Ethan J. Brown <Iristyle@github>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU854ec4f9d21d: (PUP-839) FFI Util::Windows::Security / ::File
Branches
Unknown
Tags
Unknown

Event Timeline

Ethan J. Brown <Iristyle@github> committed rPU87f0583490a2: (PUP-839) FFI Windows::Util::Security.set_privilege (authored by Ethan J. Brown <Iristyle@github>).Jun 19 2014, 11:32 PM