Stop hardcoding root user
Some parts of the code still use a hardcoded user name: root. This patch replaces all with a constant specified at build time. The end goal is to make it possible to run a Ganeti cluster without any special privileges (of course this will prevent some functionality from working). Signed-off-by:Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
Showing
- Makefile.am 2 additions, 0 deletionsMakefile.am
- configure.ac 18 additions, 0 deletionsconfigure.ac
- lib/backend.py 2 additions, 2 deletionslib/backend.py
- lib/bootstrap.py 2 additions, 2 deletionslib/bootstrap.py
- lib/cli.py 2 additions, 1 deletionlib/cli.py
- lib/client/gnt_cluster.py 1 addition, 1 deletionlib/client/gnt_cluster.py
- lib/constants.py 2 additions, 1 deletionlib/constants.py
- lib/hypervisor/hv_chroot.py 1 addition, 1 deletionlib/hypervisor/hv_chroot.py
- lib/hypervisor/hv_kvm.py 1 addition, 1 deletionlib/hypervisor/hv_kvm.py
- lib/hypervisor/hv_lxc.py 1 addition, 1 deletionlib/hypervisor/hv_lxc.py
- lib/hypervisor/hv_xen.py 1 addition, 1 deletionlib/hypervisor/hv_xen.py
- lib/ssh.py 1 addition, 1 deletionlib/ssh.py
- test/ganeti.query_unittest.py 1 addition, 1 deletiontest/ganeti.query_unittest.py
- tools/setup-ssh 4 additions, 4 deletionstools/setup-ssh
Loading
Please register or sign in to comment