From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSTXX-0007fK-Ev for qemu-devel@nongnu.org; Thu, 29 Nov 2018 16:08:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSTXW-0006s9-N9 for qemu-devel@nongnu.org; Thu, 29 Nov 2018 16:08:03 -0500 References: From: Eric Blake Message-ID: <79b674dd-d5b5-ff7c-7497-6fce2cb31b8a@redhat.com> Date: Thu, 29 Nov 2018 15:07:54 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu-iotests 232 fails when running the test as root user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Farhan Ali , qemu-block@nongnu.org, QEMU Developers , Kevin Wolf 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. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org