]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nvram: Fix permissions
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Sep 2014 10:09:04 +0000 (12:09 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Sep 2014 14:16:27 +0000 (16:16 +0200)
commit37d8c75fad297891b80086b125046ed3990eaf59
tree40a5013dd5cd20fd958c3c0c44d256826b159447
parent102eaa8817f9a537a4d584c187c8ffd3adfca016
nvram: Fix permissions

I've noticed two problem with the automatically created NVRAM varstore
file. The first, even though I run qemu as root:root for some reason I
get Permission denied when trying to open the _VARS.fd file. The
problem is, the upper directory misses execute permissions, which in
combination with us dropping some capabilities result in EPERM.

The next thing is, that if I switch SELinux to enforcing mode, I get
another EPERM because the vars file is not labeled correctly. It is
passed to qemu as disk and hence should be labelled as disk. QEMU may
write to it eventually, so this is different to kernel or initrd.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
libvirt.spec.in
src/security/security_selinux.c