]> git.proxmox.com Git - mirror_lxc.git/commit
conf: error out on too many mappings
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Oct 2017 10:50:49 +0000 (12:50 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 17 Oct 2017 05:45:18 +0000 (01:45 -0400)
commit49eb81b12a1dc076e5b275cf697075aa42f6b088
treeda9c6a55e840450925e7fb87884dacf06d8482e8
parent3eddc004f10ce69210d02fa6b031c0a6dfe4fc17
conf: error out on too many mappings

The kernel only allows 4k writes to most files in /proc including {g,u}id_map
so let's not try to write partial mappings. (This will obviously become a lot
more relevant when my patch to extend the idmap limit in the kernel is merged.)

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c