lxc: containers shows hosts's partitions

ned

Renowned Member
Jan 26, 2015
113
2
83
I notices when logged inside lxc container if I do cat /proc/partitions I will have access to hosts's partitions.

Is there a way to hide host's partitions?

Code:
pveversion
pve-manager/4.4-12/e71b7a74 (running kernel: 4.4.35-1-pve)
 
Hi dietmar,
Is this something I can hide or do I have to wait for the lxc team to implement something? Thanks
 
Hi dietmar,
Is this something I can hide or do I have to wait for the lxc team to implement something? Thanks

while lxcfs could somehow also "virtualize" this file - the whole sys interface of the kernel would still expose it.. this is rather deeply rooted into the way LXC (and other cgroups based container solutions) work, and would require rather heavy changes on the kernel side.
 

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!