forked from neil/lxc-templates
Merge pull request #3 from mar-kolya/sshd-template-fixes
Sshd template fixes
This commit is contained in:
commit
07632524ae
@ -136,7 +136,8 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
|
|||||||
# When using LXC with apparmor, uncomment the next line to run unconfined:
|
# When using LXC with apparmor, uncomment the next line to run unconfined:
|
||||||
#lxc.apparmor.profile = unconfined
|
#lxc.apparmor.profile = unconfined
|
||||||
|
|
||||||
lxc.mount.entry = /dev dev none ro,bind 0 0
|
lxc.autodev = 1
|
||||||
|
|
||||||
lxc.mount.entry = /lib lib none ro,bind 0 0
|
lxc.mount.entry = /lib lib none ro,bind 0 0
|
||||||
lxc.mount.entry = /bin bin none ro,bind 0 0
|
lxc.mount.entry = /bin bin none ro,bind 0 0
|
||||||
lxc.mount.entry = /usr usr none ro,bind 0 0
|
lxc.mount.entry = /usr usr none ro,bind 0 0
|
||||||
@ -238,7 +239,7 @@ EOF
|
|||||||
ifconfig eth0 |grep inet
|
ifconfig eth0 |grep inet
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec @SBINDIR@/init.lxc -- $sshd_path
|
exec @SBINDIR@/init.lxc --name $name -- $sshd_path
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user