[Bug 1561] New: Check for up on open tap device

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Feb 24 07:32:40 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=1561

           Summary: Check for up on open tap device
           Product: Portable OpenSSH
           Version: 5.1p1
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sshd
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: richard.burakowski+ossh at mrburak.net


Created an attachment (id=1606)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1606)
check for open tun/tap device

Freebsd allows a non-root user to open a tap device
(net.link.tap.user_open=1) at which point it can be marked up
automatically (net.link.tap.up_on_open=1) so that root access is not
required to get a functioning tap server side.

#ifdef SSH_TUN_FREEBSD version of sys_tun_open in
openbsd-compat/port-tun.c dosen't allow for this.  It will successfully
open a tap for non-root but will then attempt to IFF_UP which will
fail.

Test if the interface is already marked up and leave alone if it is.

At this time, up on open is only available to tap devices.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list