4 ms·
In OpenWrt there is ujail, you give it an ELF (or multiple) to run, it'll parse them to find all the libraries they need, then it creates a tmpfs and mount bind
by champtar 1y ago
In OpenWrt there is ujail, you give it an ELF (or multiple) to run, it'll parse them to find all the libraries they need, then it creates a tmpfs and mount bind read only the required files.
https://github.com/openwrt/procd/blob/dafdf98b03bfa6014cd94ffc86de130b9deb17e4/jail/jail.c#L1009 https://github.com/openwrt/procd/blob/dafdf98b03bfa6014cd94f...