search for: anastas

Displaying 3 results from an estimated 3 matches for "anastas".

2019 Mar 09
0
Re: Obtaining the PID of a domain's QEMU process from C
On Sat, 9 Mar 2019 at 17:27, Shawn Anastasio <shawn@anastas.io> wrote: > Thanks for the response. /var/run/libvirt/qemu/ seems to be exactly what > I'm looking for. It would, however, be nice to be able to access this > file without root privileges. > Use a tiny setuid C program that reads the relevant file and write...
2019 Mar 09
2
Re: Obtaining the PID of a domain's QEMU process from C
...ny way to access the file using the credentials from a connected virConnectPtr? If not, I can stick to my current workaround of walking /proc and scanning each PID's cmdline for the VM's UUID string. Thanks, Shawn On 3/9/19 9:32 AM, Michal Prívozník wrote: > On 3/1/19 2:31 AM, Shawn Anastasio wrote: >> Hello all, >> >> I'm currently writing a C program that uses the libvirt API and I need a >> way to obtain the pid of a given domain's QEMU process. >> >> Specifically, I'm writing an ivshmem server that uses SO_PEERCRED to get >> th...
2019 Mar 01
4
Obtaining the PID of a domain's QEMU process from C
Hello all, I'm currently writing a C program that uses the libvirt API and I need a way to obtain the pid of a given domain's QEMU process. Specifically, I'm writing an ivshmem server that uses SO_PEERCRED to get the pid of clients that connect to it, and I would like to use that pid to look up the domain in libvirt to determine the proper domain ID to return to the client. As