Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213173 - net.tunl0 can't be restarted or stopped because of failed ioctl call
Summary: net.tunl0 can't be restarted or stopped because of failed ioctl call
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 18:52 UTC by marlon
Modified: 2010-08-04 22:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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