docker: Index | Files

package aaparser

import ""

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


Package Files


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.