]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: Set max uid/gid mappings for user namespace
authorRadostin Stoyanov <rstoyanov1@gmail.com>
Sat, 15 Dec 2018 10:02:34 +0000 (10:02 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 17 Dec 2018 11:03:29 +0000 (11:03 +0000)
commitf8f525ff86e5458701289e6bdd9eea1f7875de57
tree7ae3e1b9f0b3508d1cfec47033376ce2c7dd9ca6
parentb2485c4ad725fede184b877a753900fd9a37a135
lxc: Set max uid/gid mappings for user namespace

There is a limit on the number of lines in the /proc/<pid>/{g,u}id_map
files. In Linux 4.14 and earlier, this limit was (arbitrarily) set at
5 lines. Since Linux 4.15, which was released on 28 Jan 2018, the limit
is 340 lines.

This change is documented in user_namespaces(7).

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6397fac4915ab3002dc15aae751455da1a852f25

Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
src/lxc/lxc_controller.c