]> git.ipfire.org Git - thirdparty/lxc.git/commit
chown_mapped_rootid: don't double-map root id
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 4 Mar 2014 15:58:30 +0000 (09:58 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 5 Mar 2014 03:47:01 +0000 (22:47 -0500)
commit7faf057b9f5630b39fce42c3774233f44ff5dab7
tree335759ef1842b74db05de68b212f8ffa494fe1c1
parentb71f50dcaaa5a671065d51a0355e211e5f5b1d7f
chown_mapped_rootid: don't double-map root id

If the user maps container root to his host uid, chown_mapped_rootid
tries to make the same mapping twice and gets -EINVAL.

Reported-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/conf.c