mirror of
https://github.com/mii443/izoli.git
synced 2025-08-22 16:05:40 +00:00
mount procfs readonly to prevent breakout
This commit is contained in:
@ -42,6 +42,7 @@ fn main() {
|
|||||||
Mount::new("/lib64", "/lib64", true, false),
|
Mount::new("/lib64", "/lib64", true, false),
|
||||||
Mount::new("/usr/lib", "/usr/lib", true, false),
|
Mount::new("/usr/lib", "/usr/lib", true, false),
|
||||||
Mount::new("/usr/lib64", "/usr/lib64", true, false),
|
Mount::new("/usr/lib64", "/usr/lib64", true, false),
|
||||||
|
Mount::new("/etc", "/etc", true, true),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -112,7 +112,7 @@ impl IzoliBox {
|
|||||||
|
|
||||||
let mounts = [
|
let mounts = [
|
||||||
("tmp", Some("tmpfs"), MsFlags::empty()),
|
("tmp", Some("tmpfs"), MsFlags::empty()),
|
||||||
("proc", Some("proc"), MsFlags::empty()),
|
("proc", Some("proc"), MsFlags::MS_RDONLY),
|
||||||
];
|
];
|
||||||
|
|
||||||
for (target, source, flags) in mounts.iter() {
|
for (target, source, flags) in mounts.iter() {
|
||||||
|
Reference in New Issue
Block a user