jehanne/sys
Giacomo Tesio 26bd1d8dc4 kern: fix working dir after ns clone
After sending the "clone" request to /proc/$pid/ns, the current process
will be moved to the working directory of $pid.

Otherwise the current process could still access the file and folders
on the service providing its dot, even if such service was not visible to $pid.

Also, keeping the original working directory means that the 'cd' line of the
current process's ns file would be different from that of $pid: the two ns
files must match since the command asked for a "clone".

See also https://marc.info/?l=9fans&m=150893734909969&w=2
2017-10-25 02:06:29 +02:00
..
include rc: use some uppercase variables (PATH, USER...) 2017-10-22 13:22:37 +02:00
lib/plumb first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
log first usable version of kernel and commands 2016-11-26 03:49:29 +01:00
posix fs: no "default" posix library 2017-04-21 23:59:27 +02:00
src kern: fix working dir after ns clone 2017-10-25 02:06:29 +02:00