mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: Don't enable seclabel remembering for session mode
The session daemon is unable to set XATTRs in 'trusted' namespace because it doesn't run as privileged process. Therefore, when creating the default qemu config enable rememberOwner only when running as privileged process. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7fb5e319d9
commit
2ebcff3a74
@ -145,7 +145,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool privileged)
|
||||
cfg->group = (gid_t)-1;
|
||||
}
|
||||
cfg->dynamicOwnership = privileged;
|
||||
cfg->rememberOwner = true;
|
||||
cfg->rememberOwner = privileged;
|
||||
|
||||
cfg->cgroupControllers = -1; /* -1 == auto-detect */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user