policy

package
v0.0.0-...-921daf7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package policy provides helpers for keeping a framework's security policies up to date on install/remove.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SecBase is the directory to which the security policies and templates
	// are copied
	SecBase = "/var/lib/snappy"
)

Functions

func AppArmorDelta

func AppArmorDelta(oldPath, newPath, prefix string) (policies map[string]bool, templates map[string]bool)

AppArmorDelta returns which policies and templates are updated in the package at newPath, as compared to those installed in the system. The given prefix is applied to the keys of the returns maps.

func Install

func Install(pkgName, instPath, rootDir string) error

Install sets up the framework's policy from the given snap that's installed in the given path.

func Remove

func Remove(pkgName, instPath, rootDir string) error

Remove cleans up the framework's policy from the given snap that's installed in the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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