Debian Bug report logs - #404794
linux-image-2.6.18-3-686: Pb while trying ioctl on /dev/net/tun (module tun)

Package: linux-2.6; Maintainer for linux-2.6 is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: Xavier <x.guimard@free.fr>

Date: Thu, 28 Dec 2006 10:18:06 UTC

Severity: important

Done: Bastian Blank <waldi@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#404794; Package linux-image-2.6.18-3-686. Full text and rfc822 format available.

Acknowledgement sent to Xavier <x.guimard@free.fr>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Xavier <x.guimard@free.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: linux-image-2.6.18-3-686: Pb while trying ioctl on /dev/net/tun (module tun)
Date: Thu, 28 Dec 2006 10:55:15 +0100
Package: linux-image-2.6.18-3-686
Version: 2.6.18-7
Severity: important


I'm using qemu (debian version). When I launch it, it does not work and returns:

  warning: could not configure /dev/net/tun: no virtual network emulation
  Could not initialize device 'tap'

With strace, I've the following error:

  431   open("/dev/net/tun", O_RDWR|O_LARGEFILE) = 3
  431   ioctl(3, TUNSETIFF, 0xbfd0afc0)   = -1 EPERM (Operation not permitted)

But it works with linux-image-2.6.17-2-686.

Thanks,
Xavier

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages linux-image-2.6.18-3-686 depends on:
ii  coreutils                     5.97-5     The GNU core utilities
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  initramfs-tools [linux-initra 0.85e      tools for generating an initramfs
ii  module-init-tools             3.3-pre3-1 tools for managing Linux kernel mo

Versions of packages linux-image-2.6.18-3-686 recommends:
pn  libc6-i686                    <none>     (no description available)

-- debconf information excluded


.



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#404794; Package linux-image-2.6.18-3-686. Full text and rfc822 format available.

Acknowledgement sent to Andrea Palazzi <palazziandrea@yahoo.it>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at 404794@bugs.debian.org (full text, mbox):

From: Andrea Palazzi <palazziandrea@yahoo.it>
To: 404794@bugs.debian.org
Subject: linux-image-2.6.18-3-686: Pb while trying ioctl on /dev/net/tun (module tun)
Date: Tue, 09 Jan 2007 14:39:40 +0100
Same problem here with linux-image-2.6.18-3-amd64:

mapo@marcopolo:~$ uname -a
Linux marcopolo 2.6.18-3-amd64 #1 SMP Mon Dec 4 17:04:37 CET 2006  
x86_64 GNU/Linux



Bug reassigned from package `linux-image-2.6.18-3-686' to `linux-2.6'. Request was from Martin Michlmayr <tbm@cyrius.com> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#404794; Package linux-2.6. Full text and rfc822 format available.

Acknowledgement sent to "Serge A. Ribalchenko" <fisher@x-play.com.ua>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #17 received at 404794@bugs.debian.org (full text, mbox):

From: "Serge A. Ribalchenko" <fisher@x-play.com.ua>
To: 404794@bugs.debian.org
Subject: same problem
Date: Thu, 15 Mar 2007 20:02:08 +0200
Same problem with 2.6.18-4-k7.

fisher@ws:~$ uname -a
Linux ws 2.6.18-4-k7 #1 SMP Wed Feb 21 16:48:19 UTC 2007 i686 GNU/Linux
Just found this bug through google by keywords "strace qemu ioctl
TUNSETIFF EPERM"

-- 
Best wishes,
~       Serge.           pubkeys: http://uch.net/~fisher/keys.asc
~fingerprint : 4346 2766 BC96 E77F 5BFF  1E7C 12C2 3852 E5FD DC34




Reply sent to Bastian Blank <waldi@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Xavier <x.guimard@free.fr>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #22 received at 404794-done@bugs.debian.org (full text, mbox):

From: Bastian Blank <waldi@debian.org>
To: 404794-done@bugs.debian.org
Subject: Re: Bug#404794: linux-image-2.6.18-3-686: Pb while trying ioctl on /dev/net/tun (module tun)
Date: Thu, 15 Mar 2007 19:21:56 +0100
[Message part 1 (text/plain, inline)]
On Thu, Dec 28, 2006 at 10:55:15AM +0100, Xavier wrote:
> I'm using qemu (debian version). When I launch it, it does not work and returns:
> 
>   warning: could not configure /dev/net/tun: no virtual network emulation
>   Could not initialize device 'tap'
> 
> With strace, I've the following error:
> 
>   431   open("/dev/net/tun", O_RDWR|O_LARGEFILE) = 3
>   431   ioctl(3, TUNSETIFF, 0xbfd0afc0)   = -1 EPERM (Operation not permitted)
> 
> But it works with linux-image-2.6.17-2-686.

This is not a bug. For security reasons, only root (to be exact:
CAP_NET_ADMIN) can generate new tun devices since .18.

This will not change, userspace have to acquire this policy.

Bastian

-- 
Beam me up, Scotty, there's no intelligent life down here!
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 18 Jun 2007 22:52:55 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 22:31:42 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.