• M
    nvram: Fix permissions · 37d8c75f
    Michal Privoznik 提交于
    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: NMichal Privoznik <mprivozn@redhat.com>
    37d8c75f
libvirt.spec.in 90.5 KB