package internal
import "github.com/cyphar/filepath-securejoin/pathrs-lite/internal"
Package internal contains unexported common code for filepath-securejoin.
Index ¶
Variables ¶
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") )
Source Files ¶
Directories ¶
| Path | Synopsis |
|---|---|
| pathrs-lite/internal/assert | Package assert provides some basic assertion helpers for Go. |
| pathrs-lite/internal/fd | Package fd provides a drop-in interface-based replacement of *os.File that allows for things like noop-Close wrappers to be used. |
| pathrs-lite/internal/gocompat | 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). |
| pathrs-lite/internal/gopathrs | Package gopathrs is a less complete pure Go implementation of some of the APIs provided by [libpathrs]. |
| pathrs-lite/internal/kernelversion | Package kernelversion provides a simple mechanism for checking whether the running kernel is at least as new as some baseline kernel version. |
| pathrs-lite/internal/linux | Package linux returns information about what features are supported on the running kernel. |
| pathrs-lite/internal/procfs | Package procfs provides a safe API for operating on /proc on Linux. |
| pathrs-lite/internal/testutils | Package testutils provides some internal helpers for tests. |
- Version
- v0.6.1 (latest)
- Published
- Nov 19, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.