mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-13 21:55:06 +01:00
build: build tasks: dev -> hotfix.
This commit is contained in:
parent
630e785787
commit
94703681d9
2 changed files with 8 additions and 8 deletions
|
@ -32,7 +32,7 @@ func init() {
|
||||||
// Build tasks applied by default
|
// Build tasks applied by default
|
||||||
builder.Register(
|
builder.Register(
|
||||||
"userspace", // Resolve variable in the userspace profile
|
"userspace", // Resolve variable in the userspace profile
|
||||||
"dev", // Temporary fix for #74, #80 & #235
|
"hotfix", // Temporary fix for #74, #80 & #235
|
||||||
)
|
)
|
||||||
|
|
||||||
// Compatibility with AppArmor 3
|
// Compatibility with AppArmor 3
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
regDev = util.ToRegexRepl([]string{
|
regHotfix = util.ToRegexRepl([]string{
|
||||||
`Cx`, `cx`,
|
`Cx`, `cx`,
|
||||||
`PUx`, `pux`,
|
`PUx`, `pux`,
|
||||||
`Px`, `px`,
|
`Px`, `px`,
|
||||||
|
@ -18,19 +18,19 @@ var (
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
type Dev struct {
|
type Hotfix struct {
|
||||||
prebuild.Base
|
prebuild.Base
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
RegisterBuilder(&Dev{
|
RegisterBuilder(&Hotfix{
|
||||||
Base: prebuild.Base{
|
Base: prebuild.Base{
|
||||||
Keyword: "dev",
|
Keyword: "hotfix",
|
||||||
Msg: "Apply test development changes",
|
Msg: "Temporary fix for #74, #80 & #235",
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b Dev) Apply(opt *Option, profile string) (string, error) {
|
func (b Hotfix) Apply(opt *Option, profile string) (string, error) {
|
||||||
return regDev.Replace(profile), nil
|
return regHotfix.Replace(profile), nil
|
||||||
}
|
}
|
Loading…
Reference in a new issue