FS#72932 - [qemu] The sandbox option elevelateprivileges=deny does not work with -daemonize

Attached to Project: Arch Linux
Opened by Nathan Kennedy (pelgrimp) - Monday, 06 December 2021, 02:48 GMT
Last edited by David Runge (dvzrv) - Saturday, 19 February 2022, 18:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Anatol Pomozov (anatolik)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

qemu will not launch if "-sandbox on,elevateprivileges=deny" and "-daemonize" are set at the same time.

Additional info:
* package version(s)
qemu 6.1.0-5
* config and/or log files etc.
journal of systemd

Steps to reproduce:

qemu-system-x86_64 -sandbox=on -nodefaults -daemonize
-> runs normally

qemu-system-x86_64 -sandbox on,elevateprivileges=deny -nodefaults -daemonize
-> fails to launch
This task depends upon

Closed by  David Runge (dvzrv)
Saturday, 19 February 2022, 18:45 GMT
Reason for closing:  Not a bug
Additional comments about closing:  The described functionality is a feature not a bug (according to upstream: https://gitlab.com/qemu-project/qemu/-/i ssues/798)
Comment by David Runge (dvzrv) - Monday, 06 December 2021, 11:37 GMT
@pelgrimp: Thanks for the report.

Have you reached out to upstream about this (as this is actually leading to a dumped core)?
On which kernel are you running qemu? Have you tried this on different kernels?
Comment by Nathan Kennedy (pelgrimp) - Saturday, 01 January 2022, 04:01 GMT
@dvzrv: Thanks. I just reported the issue at https://gitlab.com/qemu-project/qemu/-/issues/798.

I ran on Linux 5.15.5-arch1-1, and recent updates to both the kernel and qemu apparently don't change the result.

(btw there is a typo in my "Steps to reproduce" above, but I don't know how to edit it. There should be no "=" between "-sandbox" and "on".)

Loading...