can't add tun device to bridge as user
From: Terry Kemp (tkemp_at_mer-med.com)
Date: 06/29/05
- Previous message: M.Lewis: "[FC3] Squirrel Mail / SELinux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: For users of Fedora Core releases <fedora-list@redhat.com> Date: Thu, 30 Jun 2005 09:57:56 +1200
When starting QEMU, I am having problems configuring the tun device
(tun0) as a user. Qemu runs the /etc/qemu-ifup script (as root?) which
configures and then adds the tun device to the bridged eth0 device.
It works as root, and worked in FC3 once I changed permissions on
the /dev/net/tun device.
[tkemp@systems-fc4 ~]$ ls -al /dev/net/tun
crw-rw-rw- 1 root qemu 10, 200 Jun 24 00:36 /dev/net/tun
[tkemp@systems-fc4 qvm]$ cat /etc/qemu-ifup
#!/bin/sh
/sbin/ifconfig $1 0.0.0.0 promisc up
/usr/sbin/brctl addif br0 $1
[tkemp@systems-fc4 qvm]$ ./startxp
Connected to host network interface: tun0
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
can't add tun0 to bridge br0: Operation not permitted
/etc/qemu-ifup: could not launch network script
[tkemp@systems-fc4 ~]$ ls -al /usr/sbin/brctl
-rwxr-xr-x 1 root qemu 23912 Mar 3 03:36 /usr/sbin/brctl
I tried adding a 'qemu' group and adding myself to that but am not
having any luck. setenforce 0 doesn't help.
What is locking me out?
Terry
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: M.Lewis: "[FC3] Squirrel Mail / SELinux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]