diff options
| author | Kuniyuki Iwashima <[email protected]> | 2024-10-21 18:32:38 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-10-29 10:54:58 +0000 |
| commit | 88d1f8770690791cbe5d8f60b17137df05476299 (patch) | |
| tree | 79fd8432e23d355eb3934169eb3ccaf51584b4e8 /net/core/dev_ioctl.c | |
| parent | ipv4: Convert devinet_sysctl_forward() to per-netns RTNL. (diff) | |
| download | kernel-88d1f8770690791cbe5d8f60b17137df05476299.tar.gz kernel-88d1f8770690791cbe5d8f60b17137df05476299.zip | |
ipv4: Convert devinet_ioctl() to per-netns RTNL except for SIOCSIFFLAGS.
Basically, devinet_ioctl() operates on a single netns.
However, ioctl(SIOCSIFFLAGS) will trigger the netdev notifier
that could touch another netdev in different netns.
Let's use per-netns RTNL helper in devinet_ioctl() and place
ASSERT_RTNL() for SIOCSIFFLAGS.
We will remove ASSERT_RTNL() once RTM_SETLINK and RTM_DELLINK
are converted.
Signed-off-by: Kuniyuki Iwashima <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions
