]> git.ipfire.org Git - thirdparty/lxc.git/commit
conf: error out on too many mappings 1861/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Oct 2017 10:50:49 +0000 (12:50 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 16 Oct 2017 11:13:14 +0000 (13:13 +0200)
commita427e2686bd9f99c7c943590c2bec69d99acc340
tree79a0cdff57adc1c9afca265ad49d2c37b0675c80
parentb0a507d7b4282dec24ac1576ff4dbd57b57d1bdb
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