From owner-freebsd-bugs Tue Jun 1 10:30: 6 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 0F94014E21 for ; Tue, 1 Jun 1999 10:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA72162; Tue, 1 Jun 1999 10:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from misha.cisco.com (misha.cisco.com [171.69.206.50]) by hub.freebsd.org (Postfix) with ESMTP id 6096614E63 for ; Tue, 1 Jun 1999 10:20:14 -0700 (PDT) (envelope-from mi@misha.cisco.com) Received: (from mi@localhost) by misha.cisco.com (8.9.2/8.9.1) id NAA44297; Tue, 1 Jun 1999 13:20:13 -0400 (EDT) (envelope-from mi) Message-Id: <199906011720.NAA44297@misha.cisco.com> Date: Tue, 1 Jun 1999 13:20:13 -0400 (EDT) From: Mikhail Teterin Reply-To: mi@aldan.algebra.com To: FreeBSD-gnats-submit@freebsd.org Cc: brian@Awfulhak.org X-Send-Pr-Version: 3.2 Subject: kern/11981: access to tunN devices not allowed to non-root despite permissions Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11981 >Category: kern >Synopsis: access to tunN devices not allowed to non-root despite permissions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jun 1 10:30:02 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 3.1-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: Despite the proper permissions on the /dev/tun? files, the tun-devices can only be opened by root. It seems, the tun-driver checks for this, without an obvious good reason... In addition, I'd like to be able to delegate an interface configuration to a non-root user, who is able to write to the device... >How-To-Repeat: mi@chubby:~ (84) ls -l /dev/tun3 crw-rw---- 1 mi dialer 52, 3 Jun 1 11:00 /dev/tun3 mi@chubby:~ (85) groups mi dialer operator wheel mi@chubby:~ (86) cat /dev/tun3 cat: /dev/tun3: Operation not permitted mi@chubby:~ (87) whoami mi >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message