libvirt/src/locking
Michael Chapman 881a2cff0d virtlockd: make re-exec more robust
- Use $XDG_RUNTIME_DIR for re-exec state file when running unprivileged.

- argv[0] may not contain a full path to the binary, however it should
  contain something that can be looked up in the PATH. Use execvp() to
  do path lookup on re-exec.

- As per list discussion [1], ignore --daemon on re-exec.

[1] https://www.redhat.com/archives/libvir-list/2013-December/msg00514.html

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
2014-01-22 10:44:41 +01:00
..
domain_lock.c Convert 'int i' to 'size_t i' in src/locking/ files 2013-07-10 17:55:16 +01:00
domain_lock.h locking: Pass hypervisor driver name when acquiring locks 2012-10-11 14:41:42 +02:00
libvirt_lockd.aug Add support for locking based on SCSI volume ID 2012-12-13 15:26:58 +00:00
libvirt_sanlock.aug sanlock: Introduce 'user' and 'group' conf variables 2012-10-30 10:12:10 +01:00
lock_daemon_config.c Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
lock_daemon_config.h Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
lock_daemon_dispatch.c Adapt to VIR_STRDUP and VIR_STRNDUP in src/locking/* 2013-05-09 14:00:45 +02:00
lock_daemon_dispatch.h Implement dispatch functions for lock protocol in virtlockd 2012-12-13 15:26:57 +00:00
lock_daemon.c virtlockd: make re-exec more robust 2014-01-22 10:44:41 +01:00
lock_daemon.h Rename threads.{c,h} to virthread.{c,h} 2012-12-21 11:19:49 +00:00
lock_driver_lockd.c Remove (nearly) all use of getuid()/getgid() 2013-10-21 14:03:52 +01:00
lock_driver_nop.c Rename uuid.{c,h} to viruuid.{c,h} 2012-12-21 11:19:49 +00:00
lock_driver_nop.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
lock_driver_sanlock.c Convert 'int i' to 'size_t i' in src/locking/ files 2013-07-10 17:55:16 +01:00
lock_driver.h Convert 'int i' to 'size_t i' in src/locking/ files 2013-07-10 17:55:16 +01:00
lock_manager.c Remove all direct use of getenv 2013-10-21 14:03:52 +01:00
lock_manager.h Refactor creation of lock manager plugins 2012-12-13 15:26:57 +00:00
lock_protocol.x Add ACL annotations to all RPC messages 2013-06-24 15:24:36 +01:00
lockd.conf Add support for locking based on SCSI volume ID 2012-12-13 15:26:58 +00:00
sanlock_helper.c Rename memory.{c,h} to viralloc.{c,h} 2012-12-21 11:17:14 +00:00
sanlock.conf sanlock: Introduce 'user' and 'group' conf variables 2012-10-30 10:12:10 +01:00
test_libvirt_lockd.aug.in Add support for locking based on SCSI volume ID 2012-12-13 15:26:58 +00:00
test_libvirt_sanlock.aug.in sanlock: Introduce 'user' and 'group' conf variables 2012-10-30 10:12:10 +01:00
test_virtlockd.aug.in test_virtlockd.aug.in: Use the correct file 2013-09-03 17:03:30 +02:00
virtlockd.aug Process virtlockd.conf instead of libvirtd.conf 2013-08-30 17:37:12 +02:00
virtlockd.conf Make max_clients in virtlockd configurable 2013-08-19 12:40:26 +01:00
virtlockd.init.in virtlockd: improve initscripts 2013-12-10 12:02:37 +01:00
virtlockd.pod.in Revert "virtlockd: treat SIGHUP like SIGUSR1" 2013-12-10 15:49:06 +01:00
virtlockd.service.in Add Documentation fields to systemd service files 2014-01-09 09:32:55 +01:00
virtlockd.socket.in virtlockd: improve systemd units 2013-12-10 12:02:37 +01:00
virtlockd.sysconf Introduce basic infrastructure for virtlockd daemon 2012-12-13 15:26:57 +00:00