pathguard

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pathguard provides symlink-aware containment checks for paths that originate in configuration or API input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireContained

func RequireContained(path, base string) error

RequireContained verifies that path resolves within or equal to base. Nonexistent tails are reattached to the nearest symlink-resolved ancestor.

Types

This section is empty.

Jump to

Keyboard shortcuts

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