On Fri, Mar 20, 2015 at 04:45:11PM +0800, Antonio Borneo wrote: > > open("/dev/net/tun", O_RDWR|O_CREAT, 0666) = 3 > Agree that what you found is bad. > In vpnc code, file > http://svn.unix-ag.uni-kl.de/vpnc/trunk/sysdep.c > at line 439, there is > if ((fd = open("/dev/net/tun", O_RDWR)) < 0) { > that is correct. So the problem is somewhere else.
indeed, it is in /usr/share/vpnc-scripts/vpnc-script as the strace shows that this cloned/execed process issues the open(). it seems to be line 596: if (exec 6<> /dev/net/tun) > /dev/null 2>&1 ; then which creates the file as a regular file if not existing. regards, -- M. Dietrich -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org