diff options
author | Moser, Kevin <Kevin.Moser@nordstrom.com> | 2013-02-22 15:15:08 -0800 |
---|---|---|
committer | Moser, Kevin <Kevin.Moser@nordstrom.com> | 2013-02-22 15:15:08 -0800 |
commit | c98695c6abf3384ae823a991d991151d92d5720f (patch) | |
tree | 279c992d0756d334f6fb0c0fb871fa7fc647ead5 /lib | |
parent | 42592d8c0dcddf82db28dbb74ef648ba91ea2b01 (diff) | |
download | mixlib-shellout-c98695c6abf3384ae823a991d991151d92d5720f.tar.gz |
Update comments for why to use LogonUser and CreateProcessAsUser in some cases
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/shellout/windows/core_ext.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/windows/core_ext.rb b/lib/mixlib/shellout/windows/core_ext.rb index 7062ef7..e692c7d 100644 --- a/lib/mixlib/shellout/windows/core_ext.rb +++ b/lib/mixlib/shellout/windows/core_ext.rb @@ -266,7 +266,10 @@ module Process # If running in the service windows station must do a log on to get # to the interactive desktop. Running process user account must have - # the 'Replace a process level token' permission + # the 'Replace a process level token' permission. This is necessary as + # the logon (which happens with CreateProcessWithLogon) must have an + # interactive windows station to attach to, which is created with the + # LogonUser cann with the LOGON32_LOGON_INTERACTIVE flag. if winsta_name =~ /^Service-0x0-.*$/i token = FFI::MemoryPointer.new(:ulong) |