docker: github.com/docker/docker/pkg/aaparser Index | Files

package aaparser

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

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

Index

Package Files

aaparser.go

func GetVersion Uses

func GetVersion() (int, error)

GetVersion returns the major and minor version of apparmor_parser.

func LoadProfile Uses

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.

Package aaparser imports 4 packages (graph) and is imported by 110 packages. Updated 2020-10-28. Refresh now. Tools for package owners.