r/rust•
insanitybit

void-ship: Remove vDSO and vvar to prevent clock access

https://github.com/insanitybit/void-ship

Just wrote this up yesterday as part of a larger project to isolate a process on Linux. It's very small and possibly quite niche, but I'd be curious to hear any feedback. There's a lot of unsafe since this is doing very unsafe things!

I also parse proc/self/maps to find the vdso and vvar mappings, not sure if there's any other way to do it.

Posted Nov 25, 2023, 7:46 PM UTC

35
Loading comments…