permissions: 0.939 device: 0.895 PID: 0.823 performance: 0.816 graphic: 0.799 network: 0.697 hypervisor: 0.685 virtual: 0.672 semantic: 0.601 mistranslation: 0.587 boot: 0.568 files: 0.561 kernel: 0.553 ppc: 0.545 vnc: 0.521 risc-v: 0.506 socket: 0.484 register: 0.480 VMM: 0.476 architecture: 0.475 arm: 0.457 debug: 0.440 i386: 0.434 user-level: 0.426 TCG: 0.420 x86: 0.401 peripherals: 0.364 KVM: 0.358 assembly: 0.292 virtfs fails to access contents of non-readable directories Description of problem: Attempting to access a directory inside a non-readable directory via virtfs fails. Steps to reproduce: On host: 1. `mkdir -p test/foo/bar` 2. `echo hello world >test/foo/bar/baz.txt` 3. `chmod -r test/foo` The following works on host: ``` $ ls test foo $ ls test/foo ls: cannot open directory 'test/foo': Permission denied $ ls test/foo/bar baz.txt ``` However on guest: ``` bash-5.1# ls /test/ foo bash-5.1# ls /test/foo/ ls: cannot open directory '/test/foo/': Permission denied bash-5.1# ls /test/foo/bar/ ls: cannot access '/test/foo/bar/': Permission denied ``` Additional information: I am guessing virtfs attempts to check rights (via access?) on the directory itself when obtaining an inode to give to the guest, however not having read access doesn't mean something can't be executed, especially for directories.