<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32673</bug_id>
          
          <creation_ts>2016-10-27 14:43:27 +0300</creation_ts>
          <short_desc>/dev/net/tun is created as a regular file if missing</short_desc>
          <delta_ts>2016-10-27 14:43:27 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>vpnc-script</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>159512</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-10-27 14:43:27 +0300</bug_when>
    <thetext>vpnc-script-0.5.3-alt6

In a system without systemd (and without any preceding &quot;modprobe tun&quot;), openconnect (which must be using vpnc-script):

* would fail with unclear errors like this:

	ioctl(5, TUNSETIFF, 0x7fffbc71f7d0) = -1 ENOTTY (Inappropriate ioctl for device)

* and would have created /dev/net/tun as a regular file like this:

	open(&quot;/dev/net/tun&quot;, O_RDWR|O_CREAT, 0666) = 3

(which would prevent the creation of a correct device afterwards).

A similar case (probably, the same bug) has been reported as a Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780709

Work-around:

rm /dev/net/tun # if it&apos;s a wrong regular file
modprobe -r tun
modprobe tun</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>