Re: [libvirt] [PATCH v8 09/18] security: Label the external swtpm with SELinux labels

2018-06-04 Thread Stefan Berger
On 06/02/2018 09:18 AM, Ján Tomko wrote: On Thu, May 24, 2018 at 04:26:05PM -0400, Stefan Berger wrote: +/* + * _virSecuritySELinuxRestoreFileLabels: + * + * @mgr: the virSecurityManager + * @path: path to a directory or a file + * + * Restore the file labels on the given path; if the path is a

Re: [libvirt] [PATCH v8 09/18] security: Label the external swtpm with SELinux labels

2018-06-02 Thread Ján Tomko
On Thu, May 24, 2018 at 04:26:05PM -0400, Stefan Berger wrote: In this patch we label the swtpm process with SELinux labels. We give it the same label as the QEMU process has. We label its state directory and files as well. We restore the old security labels once the swtpm has terminated. The

[libvirt] [PATCH v8 09/18] security: Label the external swtpm with SELinux labels

2018-05-24 Thread Stefan Berger
In this patch we label the swtpm process with SELinux labels. We give it the same label as the QEMU process has. We label its state directory and files as well. We restore the old security labels once the swtpm has terminated. The file and process labels now look as follows: Directory: