mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
Pass virSecurityManagerPtr to virSecurityDAC{Set, Restore}ChardevCallback
virSecurityDAC{Set,Restore}ChardevCallback expect virSecurityManagerPtr, but are passed virDomainObjPtr instead. This makes virSecurityDACSetChardevLabel set a wrong uid/gid on chardevs. This patch fixes this behaviour. Signed-off-by: Soren Hansen <soren@linux2go.dk>
This commit is contained in:
parent
9cece6c5a9
commit
e5f3b90e97
@ -509,7 +509,7 @@ virSecurityDACRestoreSecurityAllLabel(virSecurityManagerPtr mgr,
|
||||
if (virDomainChrDefForeach(vm->def,
|
||||
false,
|
||||
virSecurityDACRestoreChardevCallback,
|
||||
vm) < 0)
|
||||
mgr) < 0)
|
||||
rc = -1;
|
||||
|
||||
if (vm->def->os.kernel &&
|
||||
@ -565,7 +565,7 @@ virSecurityDACSetSecurityAllLabel(virSecurityManagerPtr mgr,
|
||||
if (virDomainChrDefForeach(vm->def,
|
||||
true,
|
||||
virSecurityDACSetChardevCallback,
|
||||
vm) < 0)
|
||||
mgr) < 0)
|
||||
return -1;
|
||||
|
||||
if (vm->def->os.kernel &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user