start to implementig clone to create namespaces

This commit is contained in:
netjaileRS
2024-08-25 21:34:18 +02:00
parent 750426ad1d
commit dec755a2a5
962 changed files with 7477 additions and 193 deletions

3
src/namespace/consts.rs Normal file
View File

@@ -0,0 +1,3 @@
pub const NET_NS_DIR:&str = "/var/run/netns";
pub const PROC_NS_DIR:&str = "/proc/self/ns/net";
pub const STACK_SIZE: usize = 1024 * 1024;