apparmor issues /w running source-built podman / runc / crun on ubuntu 26.04 (maybe debian too, idk)

tl;dr, if you build podman, runc, and/or crun from source, it will probably run into AppArmor denials

Frigate can’t store recordings, apache2 won’t start in an Ubuntu container, and etc.

# pid=$(podman inspect <container name> --format '{{.State.Pid}}')
# cat "/proc/$pid/attr/apparmor/current"
containers-default-0.70.0//&unconfined (enforce)

If I replace the source-built crun with source-built runc, it has the same issue. If I replace the source-built runc with the runc from “apt-get install runc” and remove source-built crun / runc, it works.

# cat "/proc/$pid/attr/apparmor/current"
containers-default-0.70.0 (enforce)

I don’t know *why* this is happening, but clearly the Ubuntu-repo runc has a change that upstream doesn’t. I didn’t test if Ubuntu-repo crun has the same change, but I would assume it does.

This might become a problem in the future as upstream runc / crun diverges with what is in the 26.04 repos and if future Podman versions require those features that don’t exist in 26.04’s repo’d runc / crun.

Leave a Reply

Your email address will not be published. Required fields are marked *