You might try looking at the website http://wiki.osdev.org/UEFI

Towards the bottom there is a Makefile example of creating disk images without 
root permission

-Mike


-----Original Message-----
From: qemu-discuss-bounces+mike_bradley=mentor....@nongnu.org 
[mailto:qemu-discuss-bounces+mike_bradley=mentor....@nongnu.org] On Behalf Of 
qemu-discuss-requ...@nongnu.org
Sent: Monday, August 04, 2014 12:01 PM
To: qemu-discuss@nongnu.org
Subject: Qemu-discuss Digest, Vol 35, Issue 5

Send Qemu-discuss mailing list submissions to
        qemu-discuss@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.nongnu.org/mailman/listinfo/qemu-discuss
or, via email, send a message with subject or body 'help' to
        qemu-discuss-requ...@nongnu.org

You can reach the person managing the list at
        qemu-discuss-ow...@nongnu.org

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of Qemu-discuss digest..."


Today's Topics:

   1. Re: manipulating raw disk image as non-root user (Dale R. Worley)


----------------------------------------------------------------------

Message: 1
Date: Mon, 4 Aug 2014 11:14:04 -0400
From: wor...@alum.mit.edu (Dale R. Worley)
To: qemu-discuss@nongnu.org
Subject: Re: [Qemu-discuss] manipulating raw disk image as non-root
        user
Message-ID: <201408041514.s74fe4sx008...@hobgoblin.ariadne.com>

Perhaps you could add an entry to /etc/fstab with the 'user' option.
It would allow the mounting of a file with a specific name, looped back to a 
specific mount point.  (Assuming you can set up loopback mounts in /etc/fstab.) 
 It may be possible to set enough restrictions in the fstab entry (noexec, 
nodev, etc.) to prevent this from being a gigantic security hole.

(The actual safe way would be to write a setuid program that is given the basic 
formatting specifications, creates an empty filesystem, and mounts that.  That 
way the user can't put anything into the disk image file beforehand that would 
compromise security.)

Dale



------------------------------

_______________________________________________
Qemu-discuss mailing list
Qemu-discuss@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemu-discuss


End of Qemu-discuss Digest, Vol 35, Issue 5
*******************************************

Reply via email to