AppArmor play machine
Free root access on an AppArmor machine!
A Play Machine is what is called a system with root as the guest account with only AppArmor to restrict access.
To access the Ubuntu based play machine ssh to play.pujol.io as root, the password is apparmor.
The aim of this is to:
- Demonstrate that necessary security can be provided by AppArmor without any Unix permissions (however it is still recommended that you use Unix permissions as well for real servers).
- Show that root is not everything in modern security.
- Give a demo machine with apparmor.d fully integrated.
System requirements
- A fresh VM with Ubuntu 24.04
Local dependencies
- Just
- Ansible
- Go >= 1.23
- Docker (to build the
apparmor.dpackage) - The
apparmor.dproject must be available under the../apparmor.dpath. - Hugo (to build the website)
To build the profiles, and install the play machine, run the following command:
just ansible staging playIf you only want to provision the apparmor-profiles, you can run:
just ansible production play -t role::apparmor-profilesNote
The first provision is a bit tricky: you may have to force rebooting the VM manually
Then, you can deploy the static website with:
just deploy