Re: Michael Stapelberg 2014-03-08 <x6d2hwflle....@midna.zekjur.net> > The following patch works for me to make your newpid program work: > > --- i/newpid.c > +++ w/newpid.c > @@ -40,11 +40,9 @@ run (void *argv_void) > pid_t child; > pid_t pid; > > - if (umount ("/proc") != 0) { > - /* ignore errors here, /proc could be busy > - perror ("umount /proc"); > + if (mount("none", "/proc", NULL, MS_PRIVATE|MS_REC, NULL) != 0)
Ok, that works, thanks! I only tried to remount / which didn't seem to have any effect. Unfortunately MS_PRIVATE and MS_REC are not defined in squeeze, so that fix won't work for chroots running on a systemd system, but that's something I should be able to work around. Christoph -- c...@df7cb.de | http://www.df7cb.de/
signature.asc
Description: Digital signature