> 
> 
> > Solaris 10U3, latest kqemu, qemu-0.9.0-CVS plus TAP
> patch.
> > 
> > I'm aware that a fair amount of "rootish" access is
> required for the TAP and  bridge
> > stuff, and I'm working on that.  As kind of a
> secuirty thought, I figured
> > I'd use setfacl to give myself access to the
> /dev/kqemu device instead
> > of leaving it mode 664 or 666.
> > 
> > However, that didn't work.  "getfacl /dev/kqemu"
> output's this:
> > 
> > # file: /dev/kqemu
> > # owner: root
> > # group: root
> > user::rw-
> > user:bent:rwx           #effective:rw-
> > group::rw-                #effective:rw-
> > mask:rw-
> > other:r--
> 
> Works for me, on Nevada/snv_55b.
> 
> % getfacl /dev/kqemu 
> 
> # file: /dev/kqemu
> # owner: root
> # group: root
> user::rw-
> user:jk:rwx             #effective:rw-
> group::r--              #effective:r--
> mask:rw-
> other:r--
> 
> % id
> uid=109(jk) gid=20(usr)
> 
> % truss -s\!ALRM -t open
> /opt/SUNWqemu/bin/64/qemu-system-x86_64 -m 32 -fda 
> /files/tiger2/tmp/winme_floppy.img
> ...
> open("/dev/kqemu", O_RDWR)                      = 8
> ...
> 
> % ls -l /dev/kqemu
> crw-r--r--+  1 root     root     208,  0 Okt 27 11:31
> /dev/kqemu

Ok.  I may have to play with the mask.  I'm getting
an effective permission as "r--" which may explain
the breakage.

Yep.  Changed mask to rw- and it started working.
Thanks for the example. I figured it out in just
a couple of minutes.

> > However, running qemu with kqemu enabled shows me
> the message that
> > kqemu acceleration is not enabled.  Hmmm.  Change
> to 664, it works. Argh.
> 
> Why does 664 work?  Are you ("bent"?) a member of
> group "root"?

actually sysadmin, which may inherit root.  Glad I can
get rid of that.
--
This message posted from opensolaris.org

Reply via email to