termux / proot

An chroot-like implementation using ptrace.
https://wiki.termux.com/wiki/PRoot
Other
742 stars 162 forks source link

Asking for faking the pid of /sbin/init #280

Open fish4terrisa-MSDSM opened 12 months ago

fish4terrisa-MSDSM commented 12 months ago

It is impossible to run systemd in proot now,but if there is a way to bind the pid of the /sbin/init to 1,then its possible to run it.And we can just bind the /proc/${PID_OF_INIT} to /proc/1 (I didnt found a way to patch systemd)