apparmor.d/pkg/prebuild/directories.go
Alexandre Pujol e41c5f6055
Some checks failed
Ubuntu / check (push) Has been cancelled
Ubuntu / build (default, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (default, ubuntu-24.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Has been cancelled
Ubuntu / tests (push) Has been cancelled
build; make the pkgname configurable.
2025-01-17 00:06:35 +01:00

42 lines
1.3 KiB
Go

// apparmor.d - Full set of apparmor profiles
// Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
// SPDX-License-Identifier: GPL-2.0-only
package prebuild
import "github.com/roddhjav/apparmor.d/pkg/paths"
var (
// AppArmor ABI version
ABI uint = 0
// Pkgname is the name of the package
Pkgname string = "apparmor.d"
// Root is the root directory for the build (default: .build)
Root *paths.Path = paths.New(".build")
// RootApparmord is the final built apparmor.d directory (default: .build/apparmor.d)
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")
// DebianHide is the path to the debian/apparmor.d.hide file
DebianHide = DebianHider{path: DebianDir.Join("apparmor.d.hide")}
Ignore = Ignorer{}
Flags = Flagger{}
)