[systemd-devel] [PATCH] Fix systemd crash (on assert) during shutdown/reboot in unprivileged container

Martin Pitt martin.pitt at ubuntu.com
Tue Jan 20 23:41:44 PST 2015


Andrei Borzenkov [2015-01-16 19:32 +0300]:
> If I as user do "systemctl stop /dev/pts" I expect it to
> unmount /dev/pts not fake "dead" state.

Well, not all such commands can be expected to do something useful.
Stopping mounts which the system depends on is going to break it, so
trying to "systemctl stop -- -.mount" is rightfully refused already,
while unmounting other things like /dev/pts will just eventually break
your system anyway.

Personally I think that Stephane's second patch was just about the
right compromise:

  http://lists.freedesktop.org/archives/systemd-devel/attachments/20150115/f56f60ce/attachment-0001.patch

It is reasonably future-proof (unlike the first patch) and avoids
the problem you mentioned too, i. e. silently not doing operations
while they appear to be successful.

@Lennart: We now have three patches -- could you make an executive
decision which one we take? :-)

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150121/67fa1f7d/attachment.sig>


More information about the systemd-devel mailing list