diff options
author | Bryan McLellan <btm@loftninjas.org> | 2018-01-25 12:04:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 12:04:33 -0500 |
commit | dc8adc5901b056d513fd07b736ff50da2ca06563 (patch) | |
tree | 569f671d0a51c242b560822758e69fa56395057a /lib/chef/win32/api | |
parent | 07486c726bc45f730a1bc91b650d571c3112974d (diff) | |
parent | b07a4f4b8da44bf35d9dbe879e1cf4fd2f040644 (diff) | |
download | chef-dc8adc5901b056d513fd07b736ff50da2ca06563.tar.gz |
Merge pull request #6687 from MsysTechnologiesllc/nim/logonSession_user_permission
[MSYS-724] Chef::Util::Windows::LogonSession should allow having only the prescribed users permissions
Diffstat (limited to 'lib/chef/win32/api')
-rw-r--r-- | lib/chef/win32/api/security.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/chef/win32/api/security.rb b/lib/chef/win32/api/security.rb index a6f79f5d7d..6620f321aa 100644 --- a/lib/chef/win32/api/security.rb +++ b/lib/chef/win32/api/security.rb @@ -303,6 +303,17 @@ class Chef :SecurityDelegation, ] + # https://msdn.microsoft.com/en-us/library/windows/desktop/bb530718%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 + ELEVATION_TYPE = enum :ELEVATION_TYPE, [ + :TokenElevationTypeDefault, 1, + :TokenElevationTypeFull, + :TokenElevationTypeLimited + ] + + class TOKEN_ELEVATION_TYPE < FFI::Struct + layout :ElevationType, :ELEVATION_TYPE + end + # SECURITY_DESCRIPTOR is an opaque structure whose contents can vary. Pass the # pointer around and free it with LocalFree. # http://msdn.microsoft.com/en-us/library/windows/desktop/aa379561(v=vs.85).aspx |