]> git.proxmox.com Git - mirror_lxc.git/commit
systemd/selinux init scripts fixups
authorDwight Engen <dwight.engen@oracle.com>
Thu, 2 Oct 2014 20:56:02 +0000 (16:56 -0400)
committerDwight Engen <dwight.engen@oracle.com>
Wed, 8 Oct 2014 21:57:33 +0000 (17:57 -0400)
commitf3b8088dd8a65bc1ef7b0efcccfbe8c6c8d33202
tree8f97406cf1c485d7caa723613209db1ae0df1cde
parent7943ec56e9c32d5dc2c187730d0a7b784c494d2a
systemd/selinux init scripts fixups

- RHEL/OL 7 doesn't have the ifconfig command by default so have the
  lxc-net script check for its existence before use, and fall back
  to using the ip command if ifconfig is not available

- When lxc-net is run from systemd on a system with selinux enabled,
  the mkdir -p ${varrun} will create /run/lxc as init_var_run_t which
  dnsmasq can't write its pid into, so we restorecon it
  after creation (to var_run_t)

- The lxc-net systemd .service file needs an [Install] section so that
  "systemctl enable lxc-net" will work

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
config/init/common/lxc-net.in
config/init/systemd/lxc-net.service.in