package aaparser

import "github.com/docker/docker/pkg/aaparser"

Package aaparser is a convenience package interacting with `apparmor_parser`.

Index

Functions

func GetVersion

func GetVersion() (int, error)

GetVersion returns the major and minor version of apparmor_parser.

Deprecated: no longer used, and will be removed in the next release.

func LoadProfile

func LoadProfile(profilePath string) error

LoadProfile runs `apparmor_parser -Kr` on a specified apparmor profile to replace the profile. The `-K` is necessary to make sure that apparmor_parser doesn't try to write to a read-only filesystem.

Source Files

aaparser.go

Version
v24.0.0-rc.3+incompatible
Published
May 11, 2023
Platform
js/wasm
Imports
4 packages
Last checked
2 minutes ago

Tools for package owners.