redirectionguard

package
v0.74.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package redirectionguard detects the Windows RedirectionGuard process mitigation on the current process (issue #1844).

Inno Setup 6.7.0-6.7.3 leaked the mitigation from Setup into the "postinstall" [Run] child, so a tray launched from the installer ran with EnforceRedirectionTrust=1 and every uv-managed server failed with "untrusted mount point. (os error 448)". The mitigation is inherited by all upstream child processes, so the core can only tell the operator; it cannot clear the flag on itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check() (string, bool)

Check inspects the current process. It always reports no warning off Windows, and when the policy cannot be read.

func WarningFor

func WarningFor(enforced bool) (string, bool)

WarningFor is the pure decision: given whether EnforceRedirectionTrust is set, return the operator-facing warning. It is OS-independent so the text is unit-tested everywhere.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL