package sys

import "github.com/opencontainers/runc/internal/sys"

Package sys is an internal package that contains helper methods for dealing with Linux that are more complicated than basic wrappers. Basic wrappers usually belong in internal/linux. If you feel something belongs in libcontainer/utils or libcontainer/system, it probably belongs here instead.

Index

Functions

func VerifyInode

func VerifyInode(file *os.File, checkFunc VerifyInodeFunc) error

VerifyInode verifies that the underlying inode for the given file matches an expected inode type (possibly on a particular kind of filesystem). This is mainly a wrapper around VerifyInodeFunc.

Types

type VerifyInodeFunc

type VerifyInodeFunc func(stat *unix.Stat_t, statfs *unix.Statfs_t) error

VerifyInodeFunc is the callback passed to VerifyInode to check if the inode is the expected type (and on the correct filesystem type, in the case of filesystem-specific inodes).

Source Files

doc.go verify_inode_unix.go

Version
v1.2.9
Published
Nov 27, 2025
Platform
darwin/amd64
Imports
4 packages
Last checked
5 minutes ago

Tools for package owners.