Documentation
¶
Overview ¶
Package sandbox provides utilities for checking sandbox outcome.
This package must never be used outside integration tests, there is a much better native implementation of mountinfo in the public sandbox/vfs package. Files in this package are excluded by the build system to prevent accidental misuse.
Index ¶
Constants ¶
View Source
const ( NULL = 0 PTRACE_ATTACH = 16 PTRACE_DETACH = 17 PTRACE_SECCOMP_GET_FILTER = 0x420c )
Variables ¶
Functions ¶
func CheckFilter ¶ added in v0.3.2
func MustCheckFilter ¶ added in v0.3.2
Types ¶
type FS ¶
type Mountinfo ¶
type Mountinfo struct {
// contains filtered or unexported fields
}
func NewMountinfo ¶
type MountinfoEntry ¶
type MountinfoEntry struct { // mount ID: a unique ID for the mount (may be reused after umount(2)). ID int `json:"id"` // parent ID: the ID of the parent mount (or of self for the root of this mount namespace's mount tree). Parent int `json:"parent"` // root: the pathname of the directory in the filesystem which forms the root of this mount. Root string `json:"root"` // mount point: the pathname of the mount point relative to the process's root directory. Target string `json:"target"` // mount options: per-mount options (see mount(2)). VfsOptstr string `json:"vfs_optstr"` // filesystem type: the filesystem type in the form "type[.subtype]". FsType string `json:"fstype"` // mount source: filesystem-specific information or "none". Source string `json:"source"` // super options: per-superblock options (see mount(2)). FsOptstr string `json:"fs_optstr"` }
MountinfoEntry represents deterministic mountinfo parts of a libmnt_fs entry.
func (*MountinfoEntry) EqualWithIgnore ¶
func (e *MountinfoEntry) EqualWithIgnore(want *MountinfoEntry, ignore string) bool
func (*MountinfoEntry) String ¶
func (e *MountinfoEntry) String() string
type T ¶
func (*T) MustCheckFile ¶
Click to show internal directories.
Click to hide internal directories.