Skip to content
Snippets Groups Projects
Commit c486da34 authored by Lucian Adrian Grijincu's avatar Lucian Adrian Grijincu Committed by David S. Miller
Browse files

sysctl: ipv6: use correct net in ipv6_sysctl_rtcache_flush


Before this patch issuing these commands:

  fd = open("/proc/sys/net/ipv6/route/flush")
  unshare(CLONE_NEWNET)
  write(fd, "stuff")

would flush the newly created net, not the original one.

The equivalent ipv4 code is correct (stores the net inside ->extra1).
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@free.fr>

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cdf64c80
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment