kqemu and devfs - any luck?
Bakul Shah
bakul at bitblocks.com
Thu Mar 5 10:23:37 PST 2009
On Thu, 05 Mar 2009 02:05:26 +0100 Jedrzej Kalinowski <kalinoj1 at iem.pw.edu.pl> wrote:
> Hello,
>
> I'm trying to set up kqemu (kqemu-devel from -current) to be accessible to us
> ual
> non-wheel users. I've created a ruleset that looks like this:
>
> # devfs rule show
> 100 path kqemu mode 666
> 200 path kqemu unhide
>
> than I do
> # devfs rule applyset
>
> but sadly my /dev/kqemu are still owned by root:wheel and have 660
> permissions. I'm proceeding exactly in the way that's described in man 8 devfs
>
> Maybe someone else succeded with this and could give me a tip on how to
> cope with this issue? Or maybe someone can at least confirm that it does
> not work, and the PR should be posted? I'm working on a -CURRENT
> system..
>
For loadable modules you can use devfs.conf so try something like
the following as root.
# cat >> /etc/devfs.conf <<EOF
perm kqemu0 0666
perm kqemu1 0666
EOF
# /etc/rc.d/devfs restart
But changing permissions to 0666 is a bad idea in my view. A
slightly better idea is to use the following in devfs.conf
own kqemu0 foo:bar
if you want to allow user foo to gain access to kqemu0.
More information about the freebsd-emulation
mailing list