diff options
| author | Nikolay Aleksandrov <[email protected]> | 2015-06-09 10:34:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-06-11 04:58:13 +0000 |
| commit | 8c86f967dd24a79ef202fd6f479ca9988ea31f3b (patch) | |
| tree | 7c6ddbdce8e74661e0448b24024b4b23fb0aad50 /net/unix/af_unix.c | |
| parent | Merge tag 'linux-can-next-for-4.2-20150609' of git://git.kernel.org/pub/scm/l... (diff) | |
| download | kernel-8c86f967dd24a79ef202fd6f479ca9988ea31f3b.tar.gz kernel-8c86f967dd24a79ef202fd6f479ca9988ea31f3b.zip | |
bridge: make br_fdb_delete also check if the port matches
Before this patch the user-specified bridge port was ignored when
deleting an fdb entry and thus one could delete an entry that belonged
to any port.
Example (eth0 and eth1 are br0 ports):
bridge fdb add 00:11:22:33:44:55 dev eth0 master
bridge fdb del 00:11:22:33:44:55 dev eth1 master
(succeeds)
after the patch:
bridge fdb add 00:11:22:33:44:55 dev eth0 master
bridge fdb del 00:11:22:33:44:55 dev eth1 master
RTNETLINK answers: No such file or directory
Based on a patch by Wilson Kok.
Reported-by: Wilson Kok <[email protected]>
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
