Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 213173

Summary: net.tunl0 can't be restarted or stopped because of failed ioctl call
Product: Gentoo Linux Reporter: marlon
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED TEST-REQUEST    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description marlon 2008-03-12 18:52:30 UTC
starting net.tunl0 works fine, but using the init script to stop the inteface fails.

Doing it by hand still works using iproute2 or ifconfig.

Using sys-apps/baselayout-1.12.11.1 with profile default-linux/amd64/2007.0

Reproducible: Always

Steps to Reproduce:
in /etc/conf.d/net config_tunl0=( "10.0.0.1/32 brd 10.0.0.1" )

I linked /etc/init.d/net.lo to /etc/init.d/net.tunl0 and started the interface.

/etc/init.d/net.tunl0 stop gives a ioctl: Operation not permitted 
Actual Results:  
/etc/init.d/net.tunl0 stop gives a ioctl: Operation not permitted 

strace output:

getsockname(3, {sa_family=AF_NETLINK, pid=17417, groups=00000000}, [17999331661128400908]) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
ioctl(4, 0x89f2, 0x7ffff9ca73e0)  = -1 EPERM (Operation not permitted)

Looks like an unsupported ioctl call on the socket in ipip tunnel mode.

Expected Results:  
a down interface tunl0 

Couldn't find the specific function interface_tunnel in /lib/rcscripts/net/iptunnel.sh, this function causes the error.
Comment 1 marlon 2008-05-16 10:20:20 UTC
Is there any info about this yet?
Comment 2 William Hubbs gentoo-dev 2010-08-04 22:31:41 UTC
Can you please upgrade your system to openrc/baselayout-2 and report
back to this bug if the issue continues?

Thanks,

William