AppArmor restarted without it being a requirement #160

Closed
opened 2026-04-05 20:25:37 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @naudefj on 11/28/2024

CloudPanel version(s) affected

2.5.0

Description

In "/var/lib/dpkg/info/cloudpanel.postinst", it is clear that AppArmor is a requirement on Ubuntu, yet it is not installed or mentioned in the installation instructions.

if [ "$OS_NAME" = "Ubuntu" ]; then
echo "alias /var/lib/mysql/ -> /home/mysql/," >> /etc/apparmor.d/tunables/alias
systemctl restart apparmor
fi

How to reproduce

Install on Ubuntu 24.04 without AppArmor.

Possible Solution

Make AppArmor a requirement for Ubuntu systems.

Additional Context

No response

*Originally created by @naudefj on 11/28/2024* ### CloudPanel version(s) affected 2.5.0 ### Description In "/var/lib/dpkg/info/cloudpanel.postinst", it is clear that AppArmor is a requirement on Ubuntu, yet it is not installed or mentioned in the installation instructions. if [ "$OS_NAME" = "Ubuntu" ]; then echo "alias /var/lib/mysql/ -> /home/mysql/," >> /etc/apparmor.d/tunables/alias systemctl restart apparmor fi ### How to reproduce Install on Ubuntu 24.04 without AppArmor. ### Possible Solution Make AppArmor a requirement for Ubuntu systems. ### Additional Context _No response_
Sign in to join this conversation.