internal

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: BSD-3-Clause, MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package internal contains unexported common code for filepath-securejoin.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPossibleAttack indicates that some attack was detected.
	ErrPossibleAttack error = xdevErrorish{"possible attack detected"}

	// ErrPossibleBreakout indicates that during an operation we ended up in a
	// state that could be a breakout but we detected it.
	ErrPossibleBreakout error = xdevErrorish{"possible breakout detected"}

	// ErrInvalidDirectory indicates an unlinked directory.
	ErrInvalidDirectory = errors.New("wandered into deleted directory")

	// ErrDeletedInode indicates an unlinked file (non-directory).
	ErrDeletedInode = errors.New("cannot verify path of deleted inode")
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package assert provides some basic assertion helpers for Go.
Package assert provides some basic assertion helpers for Go.
Package fd provides a drop-in interface-based replacement of *os.File that allows for things like noop-Close wrappers to be used.
Package fd provides a drop-in interface-based replacement of *os.File that allows for things like noop-Close wrappers to be used.
Package gocompat includes compatibility shims (backported from future Go stdlib versions) to permit filepath-securejoin to be used with older Go versions (often filepath-securejoin is added in security patches for old releases, so avoiding the need to bump Go compiler requirements is a huge plus to downstreams).
Package gocompat includes compatibility shims (backported from future Go stdlib versions) to permit filepath-securejoin to be used with older Go versions (often filepath-securejoin is added in security patches for old releases, so avoiding the need to bump Go compiler requirements is a huge plus to downstreams).
Package gopathrs is a less complete pure Go implementation of some of the APIs provided by [libpathrs].
Package gopathrs is a less complete pure Go implementation of some of the APIs provided by [libpathrs].
Package kernelversion provides a simple mechanism for checking whether the running kernel is at least as new as some baseline kernel version.
Package kernelversion provides a simple mechanism for checking whether the running kernel is at least as new as some baseline kernel version.
Package linux returns information about what features are supported on the running kernel.
Package linux returns information about what features are supported on the running kernel.
Package procfs provides a safe API for operating on /proc on Linux.
Package procfs provides a safe API for operating on /proc on Linux.
Package testutils provides some internal helpers for tests.
Package testutils provides some internal helpers for tests.

Jump to

Keyboard shortcuts

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