]> git.proxmox.com Git - mirror_lxc.git/commit
templates: improve refusing to run unprivileged
authorTAMUKI Shoichi <tamuki@linet.gr.jp>
Thu, 6 Feb 2014 10:38:39 +0000 (19:38 +0900)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 6 Feb 2014 16:05:20 +0000 (11:05 -0500)
commitc63c04fcaf1c3a78c70500eae253d72fa9c8358a
tree52205a742b84421495fc80917458bd20b4334ae0
parent35f746711b2407f0b8712d8ed0b49e0782aea031
templates: improve refusing to run unprivileged

For all templates except lxc-ubuntu-cloud and lxc-download, detect not
only --mapped-uid but also --mapped-gid and error out.  Detecting will
not be done after -- parameter because of non-option parameters.

Also, change the mode of lxc-archlinux.in 100755 to 100644.

Signed-off-by: TAMUKI Shoichi <tamuki@linet.gr.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
15 files changed:
templates/lxc-alpine.in
templates/lxc-altlinux.in
templates/lxc-archlinux.in [changed mode: 0755->0644]
templates/lxc-busybox.in
templates/lxc-centos.in
templates/lxc-cirros.in
templates/lxc-debian.in
templates/lxc-fedora.in
templates/lxc-gentoo.in
templates/lxc-openmandriva.in
templates/lxc-opensuse.in
templates/lxc-oracle.in
templates/lxc-plamo.in
templates/lxc-sshd.in
templates/lxc-ubuntu.in