Commit graph

10 commits

Author SHA1 Message Date
MaxHearnden
f3cf29ed11 port to riscv{32,64} 2023-11-28 04:00:59 +00:00
MaxHearnden
c487ab80c2 mount proc and sys recursively 2023-11-28 03:12:50 +00:00
MaxHearnden
7c320a5b75 fix hex code for mov_r8,[rsp+DWORD] 2023-11-28 03:12:29 +00:00
MaxHearnden
f4e139d1ac remove envp argument for main 2023-11-28 03:11:51 +00:00
MaxHearnden
53d1c416be Only add variables to environment if they are already set 2023-11-28 02:39:40 +00:00
MaxHearnden
c4e12161b7 reset environment in wrap.c 2023-11-28 01:50:53 +00:00
MaxHearnden
1fb704334c add x86_64 to wrap.c 2023-11-28 00:41:22 +00:00
MaxHearnden
d0635afc99 allow compilation of wrap.c with gcc 2023-11-27 23:41:16 +00:00
MaxHearnden
f13aa2964a Make the operation of wrap.c conditional on need
Don't create a user namespace if we are already root and don't chroot if
cwd is already root
2023-11-27 22:28:31 +00:00
MaxHearnden
a135fc1eca Add small unprivileged chroot 2023-11-26 18:53:18 +00:00