qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-iotests 232 fails when running the test as root us


From: Farhan Ali
Subject: Re: [Qemu-devel] qemu-iotests 232 fails when running the test as root user
Date: Thu, 29 Nov 2018 16:46:07 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0



On 11/29/2018 04:07 PM, Eric Blake wrote:
On 11/29/18 3:03 PM, Farhan Ali wrote:
Hi,

I am seeing a failure of the qemu-iotest number 232 when running the test as a root user. Is this the expected behavior?

Here is the output of the failure:


-QEMU_PROG: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none,read-only=off,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied
-NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only)
-NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only)
-
-QEMU_PROG: -drive driver=file,file=TEST_DIR/t.IMGFMT,if=none,auto-read-only=off: Could not open 'TEST_DIR/t.IMGFMT': Permission denied
-NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only)
-NODE_NAME: TEST_DIR/t.IMGFMT (file, read-only)
+NODE_NAME: TEST_DIR/t.IMGFMT (file)

Not entirely unexpected (since root can read what are otherwise read-only files), but obviously unexpected by the test. The test should probably refuse to run as root.


Yes, I believe it would be better if there was a check to prevent running this test as root.

Thanks
Farhan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]