Skip to content

Commit

Permalink
util/winutil: add constants from Win32 SDK for dll blocking mitigatio…
Browse files Browse the repository at this point in the history
…n policies

Fixes tailscale#13182

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
  • Loading branch information
dblohm7 committed Aug 19, 2024
1 parent 8fad8c4 commit f95785f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions util/winutil/startupinfo_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ const (

// Mitigation flags from the Win32 SDK
const (
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_REMOTE_ALWAYS_ON = (1 << 52)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_LOW_LABEL_ALWAYS_ON = (1 << 56)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_PREFER_SYSTEM32_ALWAYS_ON = (1 << 60)
PROCESS_CREATION_MITIGATION_POLICY_EXTENSION_POINT_DISABLE_ALWAYS_ON = (1 << 32)
PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_ALWAYS_ON = (1 << 44)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_REMOTE_ALWAYS_ON = (1 << 52)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_LOW_LABEL_ALWAYS_ON = (1 << 56)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_PREFER_SYSTEM32_ALWAYS_ON = (1 << 60)
)

// StartupInfoBuilder constructs a Windows STARTUPINFOEX and optional
Expand Down

0 comments on commit f95785f

Please sign in to comment.