]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-login-shell: add ability to auto-detect shell from container
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 12 Apr 2016 16:01:39 +0000 (17:01 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Jun 2016 10:03:02 +0000 (11:03 +0100)
commit18a10ddc1681f3d7ab58470f5c6e2e335767a60f
tree2fd8131cb0ef85cd7820e4ef1d7138b1e8bea033
parentee877b871042099b6e9c66eea6cbcf90f8cfc2f0
virt-login-shell: add ability to auto-detect shell from container

Currently the shell must be looked up from the config setting in
/etc/libvirt/virt-login-shell.conf. This is inflexible if there
are containers where different users need different shells. Add
add a new 'auto-shell' config parameter which instructs us to
query the containers' /etc/passwd for the shell to be exec'd.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tools/virt-login-shell.c
tools/virt-login-shell.conf
tools/virt-login-shell.pod