Files
runc/libcontainer/nsenter/nsenter.go
Aleksa Sarai 627054d246 lint/revive: add package doc comments
This silences all of the "should have a package comment" lint warnings
from golangci-lint.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-10-03 15:17:43 +10:00

18 lines
468 B
Go

//go:build linux && !gccgo
// Package nsenter implements the namespace creation and joining logic of runc.
//
// This package registers a special CGo constructor that will run before the Go
// runtime boots in order to provide a mechanism for runc to operate on
// namespaces that require single-threaded program execution to work.
package nsenter
/*
#cgo CFLAGS: -Wall
extern void nsexec();
void __attribute__((constructor)) init(void) {
nsexec();
}
*/
import "C"