mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
ci: match Ubuntu unprivileged bwrap profile
This commit is contained in:
2
.github/workflows/linux-sandbox-smoke.yml
vendored
2
.github/workflows/linux-sandbox-smoke.yml
vendored
@@ -105,7 +105,7 @@ jobs:
|
||||
sudo grep bwrap /sys/kernel/security/apparmor/profiles || true
|
||||
exit 1
|
||||
fi
|
||||
if ! sudo grep -Eq '^bwrap//.*unpriv_bwrap \(enforce\)$' /sys/kernel/security/apparmor/profiles; then
|
||||
if ! sudo grep -Eq '(^bwrap//.*unpriv_bwrap \(enforce\)$|^unpriv_bwrap \(enforce\)$)' /sys/kernel/security/apparmor/profiles; then
|
||||
echo "Ubuntu's unprivileged bwrap child profile is not loaded in enforce mode."
|
||||
sudo grep bwrap /sys/kernel/security/apparmor/profiles || true
|
||||
exit 1
|
||||
|
||||
@@ -106,7 +106,7 @@ set -euo pipefail
|
||||
aa_profile="$(cat /proc/self/attr/current)"
|
||||
echo "payload.apparmor=$aa_profile"
|
||||
case "$aa_profile" in
|
||||
*bwrap*unpriv_bwrap*) ;;
|
||||
*unpriv_bwrap*) ;;
|
||||
*)
|
||||
echo "Expected payload to run under Ubuntu's unprivileged bwrap AppArmor profile." >&2
|
||||
exit 1
|
||||
@@ -131,7 +131,7 @@ set -euo pipefail
|
||||
aa_profile="$(cat /proc/self/attr/current)"
|
||||
echo "payload.apparmor=$aa_profile"
|
||||
case "$aa_profile" in
|
||||
*bwrap*unpriv_bwrap*)
|
||||
*unpriv_bwrap*)
|
||||
echo "Expected legacy Landlock smoke to avoid the bwrap AppArmor profile." >&2
|
||||
exit 1
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user