mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 19:05:24 +00:00
qemu: chown autoDumpPath on driver startup
Not sure if this is required, but it makes things consistent with the rest of the directories. (cherry picked from commit db3ccd582c94f8c5a046f2f9be92a1ad95bc4753)
This commit is contained in:
parent
0dea832ada
commit
be95a1f150
@ -789,6 +789,14 @@ qemuStateInitialize(bool privileged,
|
||||
(int) cfg->group);
|
||||
goto error;
|
||||
}
|
||||
if (chown(cfg->autoDumpPath, cfg->user, cfg->group) < 0) {
|
||||
virReportSystemError(errno,
|
||||
_("unable to set ownership of '%s' to %d:%d"),
|
||||
cfg->autoDumpPath, (int) cfg->user,
|
||||
(int) cfg->group);
|
||||
goto error;
|
||||
}
|
||||
|
||||
run_uid = cfg->user;
|
||||
run_gid = cfg->group;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user