[Pkg-systemd-maintainers] Bug#739593: Bug#739593: Bug#739593: closed by Michael Stapelberg <stapelberg at debian.org> (Re: Bug#739593: systemd makes / shared by default)

Christoph Berg myon at debian.org
Tue Mar 11 13:14:31 GMT 2014


Re: Michael Stapelberg 2014-03-08 <x6d2hwflle.fsf at 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
-- 
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140311/ca8ba066/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list