apparmor

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAppArmorProfileLoaded

func IsAppArmorProfileLoaded(name string) (bool, error)

func LoadAppArmorProfile

func LoadAppArmorProfile(path string, mode string) (string, error)

func RemoveAppArmorProfile

func RemoveAppArmorProfile(profilePath string) error

func RemoveUnknown

func RemoveUnknown() (string, error)

RemoveUnknown remove the unknown AppArmor profiles from kernel.

Node: It will only recognize profiles in /etc/apparmor.d, not even its subdirectories

func SaveAppArmorProfile added in v0.5.4

func SaveAppArmorProfile(fileName string, content string) error

func UnloadAllAppArmorProfiles added in v0.5.6

func UnloadAllAppArmorProfiles(profileDir string)

func UnloadAppArmorProfile

func UnloadAppArmorProfile(profilePath string) (string, error)

func UpdateAppArmorProfile

func UpdateAppArmorProfile(path string, mode string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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