[PATCH] qemu: Check if unpriv_sgio is already set before trying to set it

Ján Tomko jtomko at redhat.com
Tue Oct 5 12:53:48 UTC 2021


On a Tuesday in 2021, Michal Privoznik wrote:
>In case when libvirt runs inside a restricted container it may
>not have enough permissions to modify unpriv_sgio. However, it
>may have been set beforehand by sysadmin or an orchestration
>tool. Therefore, let's check whether the currently set value is
>the one we want and if it is refrain from writing to the file.
>
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2010306
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_conf.c | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20211005/195752a6/attachment-0001.sig>


More information about the libvir-list mailing list