mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
f1f68ca334
We are automatically generating some socket paths for domains, but all those paths end up in a directory that's the same for multiple domains. The problem is that multiple domains can each run with different seclabels (users, selinux contexts, etc.). The idea here is to create a per-domain directory labelled in a way that each domain can access its own unix sockets. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1146886 Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
|
/usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefconfig -nodefaults \
|
|
-chardev socket,id=charmonitor,path=/tmp/test-monitor,server,nowait \
|
|
-mon chardev=charmonitor,id=monitor,mode=readline \
|
|
-no-acpi \
|
|
-boot c \
|
|
-device virtio-serial-pci,id=virtio-serial1,bus=pci.0,addr=0xa \
|
|
-device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x3 \
|
|
-usb \
|
|
-hda /dev/HostVG/QEMUGuest1 \
|
|
-chardev socket,id=charchannel0,path=\
|
|
/tmp/domain-QEMUGuest1/org.qemu.guest_agent.0,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,\
|
|
name=org.qemu.guest_agent.0 \
|
|
-chardev \
|
|
socket,id=charchannel1,path=/tmp/domain-QEMUGuest1/unknown.sock,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1 \
|
|
-chardev socket,id=charchannel2,path=/tmp/domain-QEMUGuest1/ble,server,nowait \
|
|
-device virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,\
|
|
name=ble
|