Re: [PATCH 1/2] qemu_cgroup: Avoid ternary operator when setting @deviceACL

2022-07-21 Thread Martin Kletzander
On Thu, Jul 21, 2022 at 12:31:41PM +0200, Michal Privoznik wrote: Inside of the qemuSetupDevicesCgroup() there's @deviceACL variable, which points to a string list of devices that are allowed in devices controller by default. This list can either come from qemu.conf (cfg->cgroupDeviceACL) or from

[PATCH 1/2] qemu_cgroup: Avoid ternary operator when setting @deviceACL

2022-07-21 Thread Michal Privoznik
Inside of the qemuSetupDevicesCgroup() there's @deviceACL variable, which points to a string list of devices that are allowed in devices controller by default. This list can either come from qemu.conf (cfg->cgroupDeviceACL) or from a builtin @defaultDeviceACL. However, a multiline ternary operator