On Wed, Oct 24, 2007 at 08:37:23PM +0300, I wrote:
> If you make the kqemu-openbsd.sh script executable, it will be
> called by modload to create a /dev/kqemu device with the correct
> major number, and a 'kqemu' group to own it.

Also, you have to chmod 660 the /dev/kqemu file.
This is a change to the kqemu-openbsd.sh example script to do it
automatically.

It is also a good idea to always remove the /dev/kqemu device when
unloading the module (via the -p switch to modunload(8)).

--- a
+++ kqemu-1.3.0pre11/kqemu-openbsd.sh   Thu Oct 25 15:07:28 2007
@@ -14,6 +14,6 @@ if [ -c /dev/kqemu ]; then
                exit 0
        fi
 fi
-mknod /dev/kqemu c "$maj" 0
+mknod -m 660 /dev/kqemu c "$maj" 0
 groupinfo -e kqemu || groupadd kqemu
 chgrp kqemu /dev/kqemu

Reply via email to