opencontainers / umoci

umoci modifies Open Container images
https://umo.ci
Apache License 2.0
744 stars 98 forks source link

auto-apply AppArmor profiles #368

Open cyphar opened 3 years ago

cyphar commented 3 years ago

It would be interesting to see if we can auto-apply AppArmor profiles if we are running as a privileged user (after all, we are only ever going to be modifying files inside the unpack directory and there are a whole host of rights we aren't going to be using).

cyphar commented 3 years ago

(Though at this point there is a valid question of "why not just chroot at that point".) Maybe we should be applying security hardenings like that if possible, and if not then we fall back to the current approach (trust that our path sanitisation is safe).