Re: [PATCH] qemu_process: Destroy domain's namespace after killing QEMU

2022-08-04 Thread Martin Kletzander
On Thu, Aug 04, 2022 at 12:52:43PM +0200, Michal Privoznik wrote: After QEMU is killed in qemuProcessStop() its mount namespace doesn't exist anymore, because it was the only process running there. Thus we should clear our internal flag that the domain has namespace enabled so that seclabel

[PATCH] qemu_process: Destroy domain's namespace after killing QEMU

2022-08-04 Thread Michal Privoznik
After QEMU is killed in qemuProcessStop() its mount namespace doesn't exist anymore, because it was the only process running there. Thus we should clear our internal flag that the domain has namespace enabled so that seclabel restore code does not try to enter it. We do the same in