apparmor

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 494 modules, 486 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package apparmor provides a minimal set of helpers to configure the AppArmor profile of the current process, effectively acting as a very stripped-down version of libapparmor.

Index

Constants

This section is empty.

Variables

View Source
var ErrApparmorNotEnabled = errors.New("apparmor: config provided but apparmor not supported")

ErrApparmorNotEnabled indicates that AppArmor is not enabled or not supported.

Functions

func ApplyProfile

func ApplyProfile(name string) error

ApplyProfile will apply the profile with the specified name to the process after the next exec. It is only supported on Linux and produces an ErrApparmorNotEnabled on other platforms.

func IsEnabled

func IsEnabled() bool

IsEnabled returns true if apparmor is enabled for the host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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