]> git.ipfire.org Git - thirdparty/systemd.git/commit
nspawn: Don't pass uid mount option for devpts 670/head
authorMike Gilbert <floppym@gentoo.org>
Thu, 23 Jul 2015 02:34:57 +0000 (22:34 -0400)
committerMike Gilbert <floppym@gentoo.org>
Thu, 23 Jul 2015 02:34:57 +0000 (22:34 -0400)
commit3dce891505f7b2bef4d492203125da765e128b1b
tree3076feab4324c7eced7c079f46c7c8078293b08a
parentf7d51e1c19aaf26e7b23661d43e71c9e6fcf7adf
nspawn: Don't pass uid mount option for devpts

Mounting devpts with a uid breaks pty allocation with recent glibc
versions, which expect that the kernel will set the correct owner for
user-allocated ptys.

The kernel seems to be smart enough to use the correct uid for root when
we switch to a user namespace.

This resolves #337.
src/nspawn/nspawn.c