mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 05:10:55 +00:00
zone: init: mount /proc with hidepid=1
Mounting procfs with hidepid=1 denies access to procfs directories for processes not accessible by the current user credentials. Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
This commit is contained in:
@ -147,7 +147,7 @@ impl ZoneInit {
|
|||||||
self.create_dir("/run", Some(0o0755)).await?;
|
self.create_dir("/run", Some(0o0755)).await?;
|
||||||
self.mount_kernel_fs("devtmpfs", "/dev", "mode=0755", None, None)
|
self.mount_kernel_fs("devtmpfs", "/dev", "mode=0755", None, None)
|
||||||
.await?;
|
.await?;
|
||||||
self.mount_kernel_fs("proc", "/proc", "", None, None)
|
self.mount_kernel_fs("proc", "/proc", "hidepid=1", None, None)
|
||||||
.await?;
|
.await?;
|
||||||
self.mount_kernel_fs("sysfs", "/sys", "", None, None)
|
self.mount_kernel_fs("sysfs", "/sys", "", None, None)
|
||||||
.await?;
|
.await?;
|
||||||
|
Reference in New Issue
Block a user