| Summary: | net.tunl0 can't be restarted or stopped because of failed ioctl call | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | marlon |
| Component: | [OLD] baselayout | Assignee: | OpenRC Team <openrc> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Is there any info about this yet? Can you please upgrade your system to openrc/baselayout-2 and report back to this bug if the issue continues? Thanks, William |
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.