build: reorganise build: abi4, fallback, prebuild cli
- ABI4 by default, fallback to abi 3. - aa-prebuild cli that can be used by other project shipping profiles. - --file option to cli to only build one dev profile. - add abi version filter to only & exclude directives.
This commit is contained in:
parent
d6b7bef89e
commit
59ac54e2fc
39 changed files with 473 additions and 440 deletions
|
|
@ -1,41 +0,0 @@
|
|||
// apparmor.d - Full set of apparmor profiles
|
||||
// Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
package cfg
|
||||
|
||||
import "github.com/roddhjav/apparmor.d/pkg/paths"
|
||||
|
||||
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{path: DebianDir.Join("apparmor.d.hide")}
|
||||
|
||||
Ignore = Ignorer{}
|
||||
Flags = Flagger{}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue