<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I have a simple C program that uses libguestfs to extract info about disk usage from a libvirt domain. It works when ran manually as root, but fails when started as a systemd service.</div><div><br></div><div>I'm attaching the service file, source code and verbose logs from both the successful manual run and from the service journal.</div><div><br>SELinix is disabled.</div><div><br></div><div>Error messages:</div><div><div>libguestfs: set_socket_create_context: getcon failed: (none): Invalid argument [you can ignore this message if you are not using SELinux + sVirt]</div><div>libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]</div><div>libguestfs: error: chown: /tmp/libguestfsvMMaec/guestfsd.sock: Operation not permitted</div><div>libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]</div><div>libguestfs: trace: launch = -1 (error)</div><div>failed to launch domain: Invalid argument</div></div><div><br></div><div>(Note on the service file: CapabilityBoundingSet is for future development - it seems to make no difference)</div><div><br><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr">Best Regards,<br>Peter</div></div></div></div></div></div></div></div></div>