restrict

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package restrict enables programs to utilize the Landlock Linux Security Module (LSM) for sandboxing on supported systems.

On systems where Landlock is not available, this package will have no effect.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, rules ...landlock.Rule)

Do applies the provided set of landlock.Rule to restrict all goroutines within the program.

If sandboxing fails, a log message will be generated, but the program will continue execution.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL