]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: set a hostname based on the container name
authorCédric Bosdonnat <cbosdonnat@suse.com>
Mon, 18 Dec 2017 14:48:33 +0000 (15:48 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 3 Jan 2018 09:58:16 +0000 (10:58 +0100)
commitfaec1958614bfcdb535b1bcc0ddac8cde4516e1a
treec070d586809b6652d8b2824973022c6de000ca89
parentb475a91b7753281eb60b87f75b0055fe3c139276
lxc: set a hostname based on the container name

Set a transient hostname on containers. The hostname is computed from
the container name, only keeping the valid characters [a-zA-Z0-9-] in it.
This filtering is based on RFC 1123 and allows a digit to start the
hostname.
src/lxc/lxc_container.c