]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: add possibility to define init uid/gid
authorCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 6 Jun 2017 08:54:16 +0000 (10:54 +0200)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 11 Jul 2017 08:41:24 +0000 (10:41 +0200)
commit426929aea907421301aa58719674e339aa356b53
tree60be993e355195a8ee767ee34a93c15982ba531d
parent552f7c139acecc078725d342700e3e8d00c9b812
lxc: add possibility to define init uid/gid

Users may want to run the init command of a container as a special
user / group. This is achieved by adding <inituser> and <initgroup>
elements. Note that the user can either provide a name or an ID to
specify the user / group to be used.

This commit also fixes a side effect of being able to run the command
as a non-root user: the user needs rights on the tty to allow shell
job control.

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_container.c
tests/lxcxml2xmldata/lxc-inituser.xml [new file with mode: 0644]
tests/lxcxml2xmltest.c