Skip to content

Commit

Permalink
Fix: behave: AppArmor profile "podman" specified but not loaded in op…
Browse files Browse the repository at this point in the history
…ensuse tumbleweed

Do not try to apply this profile if it is not defined.
  • Loading branch information
nicholasyang2022 committed Oct 28, 2024
1 parent 64b8a19 commit b42db8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/run-functional-tests
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ deploy_ha_node() {
# CAP_AUDIT_CONTROL for sshd
# CAP_NET_ADMIN for firewall and virtual ip
podman_capabilties="--cap-add CAP_SYS_NICE --cap-add CAP_AUDIT_CONTROL --cap-add CAP_NET_ADMIN"
if [ -d /sys/kernel/security/apparmor ]; then
if [ -d /sys/kernel/security/apparmor ] && [ -f /etc/apparmor.d/podman ]; then
podman_security="--security-opt=apparmor=podman"
else
podman_security=""
Expand Down

0 comments on commit b42db8d

Please sign in to comment.