Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Root is the root directory for the build Root *paths.Path = paths.New(".build") // RootApparmord is the final built apparmor.d directory RootApparmord *paths.Path = Root.Join("apparmor.d") // DistDir is the directory where the distribution specific files are stored DistDir *paths.Path = paths.New("dists") // FlagDir is the directory where the flags are stored FlagDir *paths.Path = DistDir.Join("flags") // IgnoreDir is the directory where the ignore files are stored IgnoreDir *paths.Path = DistDir.Join("ignore") // SystemdDir is the directory where the systemd drop-in files are stored SystemdDir *paths.Path = paths.New("systemd") // DebianDir is the directory where the debian specific files are stored DebianDir *paths.Path = paths.New("debian") // AppArmor 4.0 contains several profiles that allow userns and are otherwise // unconfined. Overwriter disables upstream profile in favor of (better) apparmor.d // counterpart Overwrite Overwriter = false // DebianHide is the path to the debian/apparmor.d.hide file DebianHide = DebianHider{/* contains filtered or unexported fields */} Ignore = Ignorer{} Flags = Flagger{} )
View Source
var ( Distribution = getDistribution() Release = getOSRelease() Family = getFamily() )
View Source
var Hide = `` /* 195-byte string literal not displayed */
Default content of debian/apparmor.d.hide. Whonix has special addition.
Functions ¶
Types ¶
type BaseInterface ¶
type DebianHider ¶
type DebianHider struct {
// contains filtered or unexported fields
}
func (DebianHider) Init ¶
func (d DebianHider) Init() error
Initialize the file with content from Hide
type Overwriter ¶
type Overwriter bool
func (Overwriter) Apply ¶
func (o Overwriter) Apply() error
Overwrite upstream profile: disable upstream & rename ours
Click to show internal directories.
Click to hide internal directories.