build: add initial build support for ubuntu 24.04
This commit is contained in:
parent
431e93c9df
commit
ae9f7e7442
4 changed files with 106 additions and 19 deletions
|
|
@ -130,8 +130,22 @@ func Configure() ([]string, error) {
|
|||
switch Distribution {
|
||||
case "arch", "opensuse":
|
||||
|
||||
case "debian", "ubuntu", "whonix":
|
||||
// Copy Ubuntu specific profiles
|
||||
case "ubuntu":
|
||||
if needDisplace {
|
||||
if _, err := paths.New("debian/apparmor.d.displace").Create(); err != nil {
|
||||
return res, err
|
||||
}
|
||||
filesToDisplace := overwriteProfile(DistDir.Join("displace"))
|
||||
if err := displaceFiles(filesToDisplace); err != nil {
|
||||
return res, err
|
||||
}
|
||||
} else {
|
||||
if err := copyTo(DistDir.Join("ubuntu"), RootApparmord); err != nil {
|
||||
return res, err
|
||||
}
|
||||
}
|
||||
case "debian", "whonix":
|
||||
// Copy Debian specific abstractions
|
||||
if err := copyTo(DistDir.Join("ubuntu"), RootApparmord); err != nil {
|
||||
return res, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue