LXC unprivileged nested=1 vs lxc.apparmor.profile unconfined what is more unsecure

kuumaur

Member
Nov 15, 2021
5
0
6
51
Hi,
I run all my LXC container unprivileged.
Now and then I have issues with systemd and/or logrotate and some more services not starting.
I resolve the issues with lxc.apparmor.profile unconfined in the LXC conf file.
But I could resolve it by setting nested=1 option in LXC conf file.

So, what is more secure?
What does expose more risk?

Thanx for an explanation.
 
Hi,
AFAIK, nesting is much more limited, in that it exposes procfs and sysfs of the host to the guest. Note that the web UI defaults to enabling nesting, because it is required for most modern containers. The backend uses lxc.apparmor.allow_nesting = 1 when the feature is enabled.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!