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. |
Click to show internal directories.
Click to hide internal directories.