mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
Revert "rtnetlink: Allow deleting FDB entries in user namespace"
This reverts commit 509da3463f which is
commit bf29555f5bdc017bac22ca66fcb6c9f46ec8788f upstream.
It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.
Bug: 161946584
Change-Id: Id85d10ca56c12b015364a2440c540f6d89203366
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
f6520a7c91
commit
13a2c8a68f
1 changed files with 3 additions and 0 deletions
|
|
@ -3836,6 +3836,9 @@ static int rtnl_fdb_del(struct sk_buff *skb, struct nlmsghdr *nlh,
|
|||
int err;
|
||||
u16 vid;
|
||||
|
||||
if (!netlink_capable(skb, CAP_NET_ADMIN))
|
||||
return -EPERM;
|
||||
|
||||
if (!del_bulk) {
|
||||
err = nlmsg_parse_deprecated(nlh, sizeof(*ndm), tb, NDA_MAX,
|
||||
NULL, extack);
|
||||
|
|
|
|||
Loading…
Reference in a new issue