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 (#1597)

Do not try to apply this profile if it is not defined.
  • Loading branch information
liangxin1300 authored Oct 28, 2024
2 parents 64b8a19 + b42db8d commit 45c1225
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 45c1225

Please sign in to comment.