-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AppArmor profile to fix Brioche builds on Ubuntu 24.04 (#2)
* Update test workflow to run on multiple Ubuntu versions * Update test workflow to build an example project * Install AppArmor profile on Linux by default
- Loading branch information
Showing
6 changed files
with
90 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
abi <abi/4.0>, | ||
include <tunables/global> | ||
|
||
# Enable unprivileged user namespaces for Brioche. See this Ubuntu blog post | ||
# for more context: | ||
# https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces | ||
${BRIOCHE_INSTALL_PATH} flags=(default_allow) { | ||
userns, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dependencies": { | ||
"hello_world": "c3fc0c4d755cd81cda36168337912de7dbb27cb8eb1d9d11c60fff613526fb44", | ||
"std": "c61485184862a8ed1ec3fc12f3a6f5ea91c32b6f450cbe81cbc596c0c7e2a06d" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as std from "std"; | ||
import helloWorld from "hello_world"; | ||
|
||
// Replaced with a timestamp to ensure the build can't be cached | ||
const WATERMARK_VALUE = "${WATERMARK}"; | ||
|
||
export default function () { | ||
return std.runBash` | ||
hello-world | tee "$BRIOCHE_OUTPUT" | ||
` | ||
.env({ WATERMARK_VALUE }) | ||
.dependencies(helloWorld()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters