mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-26 06:58:00 +01:00
chore: document build the enabled task.
This commit is contained in:
parent
18a71512a9
commit
4b5f7f2b52
3 changed files with 14 additions and 27 deletions
|
@ -20,13 +20,13 @@ func init() {
|
|||
|
||||
// Define the tasks applied by default
|
||||
prepare.Register(
|
||||
"synchronise",
|
||||
"ignore",
|
||||
"merge",
|
||||
"configure",
|
||||
"setflags",
|
||||
"overwrite",
|
||||
"systemd-default",
|
||||
"synchronise", // Initialize a new clean apparmor.d build directory
|
||||
"ignore", // Ignore profiles and files from dist/ignore
|
||||
"merge", // Merge profiles (from group/, profiles-*-*/) to a unified apparmor.d directory
|
||||
"configure", // Set distribution specificities
|
||||
"setflags", // Set flags as definied in dist/flags
|
||||
"overwrite", // Overwrite dummy upstream profiles
|
||||
"systemd-default", // Set systemd unit drop in files for dbus profiles
|
||||
)
|
||||
|
||||
// Build tasks applied by default
|
||||
|
@ -65,9 +65,6 @@ func init() {
|
|||
/etc/apparmor.d/whonix-firewall
|
||||
`
|
||||
}
|
||||
if prebuild.ABI == 3 {
|
||||
builder.Register("abi3")
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -86,21 +86,11 @@ func Prebuild() {
|
|||
builder.Register("enforce")
|
||||
}
|
||||
|
||||
switch abi {
|
||||
case 3:
|
||||
prebuild.ABI = 3
|
||||
builder.Register("abi3")
|
||||
case 4:
|
||||
prebuild.ABI = 4
|
||||
for i, b := range builder.Builds {
|
||||
if b.Name() == "abi3" {
|
||||
builder.Builds = append(builder.Builds[:i], builder.Builds[i+1:]...)
|
||||
break
|
||||
if abi != nilABI {
|
||||
prebuild.ABI = abi
|
||||
}
|
||||
}
|
||||
case nilABI:
|
||||
default:
|
||||
logging.Fatal("ABI %d not supported", abi)
|
||||
if prebuild.ABI == 3 {
|
||||
builder.Register("abi3") // Convert all profiles from abi 4.0 to abi 3.0
|
||||
}
|
||||
|
||||
if file != "" {
|
||||
|
|
|
@ -20,7 +20,7 @@ func init() {
|
|||
RegisterTask(&Merge{
|
||||
Base: prebuild.Base{
|
||||
Keyword: "merge",
|
||||
Msg: "Merge all profiles into a unified apparmor.d directory",
|
||||
Msg: "Merge profiles (from group/, profiles-*-*/) to a unified apparmor.d directory",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue