mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 18:45:16 +00:00
qemu: virtiofs: do not force UID 0
Remove the explicit setting of uid 0 when running virtiofsd. It is not required for privileged mode, where virtiofsd will be run as root anyway. And for unprivileged mode, virtiofsd no longer requires to be run as root. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bdf96a0f72
commit
d27b6e5f49
@ -257,10 +257,6 @@ qemuVirtioFSStart(virQEMUDriver *driver,
|
|||||||
if (!(cmd = qemuVirtioFSBuildCommandLine(cfg, fs, &fd)))
|
if (!(cmd = qemuVirtioFSBuildCommandLine(cfg, fs, &fd)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* so far only running as root is supported */
|
|
||||||
virCommandSetUID(cmd, 0);
|
|
||||||
virCommandSetGID(cmd, 0);
|
|
||||||
|
|
||||||
virCommandSetPidFile(cmd, pidfile);
|
virCommandSetPidFile(cmd, pidfile);
|
||||||
virCommandSetOutputFD(cmd, &logfd);
|
virCommandSetOutputFD(cmd, &logfd);
|
||||||
virCommandSetErrorFD(cmd, &logfd);
|
virCommandSetErrorFD(cmd, &logfd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user