util/winutil: add constants from Win32 SDK for dll blocking mitigation policies

Fixes #13182

Signed-off-by: Aaron Klotz <aaron@tailscale.com>
pull/13061/head
Aaron Klotz 3 months ago
parent 8fad8c4b9b
commit f95785f22b

@ -35,9 +35,11 @@ const (
// Mitigation flags from the Win32 SDK // Mitigation flags from the Win32 SDK
const ( const (
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_REMOTE_ALWAYS_ON = (1 << 52) PROCESS_CREATION_MITIGATION_POLICY_EXTENSION_POINT_DISABLE_ALWAYS_ON = (1 << 32)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_NO_LOW_LABEL_ALWAYS_ON = (1 << 56) PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_ALWAYS_ON = (1 << 44)
PROCESS_CREATION_MITIGATION_POLICY_IMAGE_LOAD_PREFER_SYSTEM32_ALWAYS_ON = (1 << 60) 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 // StartupInfoBuilder constructs a Windows STARTUPINFOEX and optional

Loading…
Cancel
Save