Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 62924af

Browse files
committed
netfilter: nfnetlink: relax strict multicast group check from netlink_bind
Relax the checking that was introduced in 97840cb ("netfilter: nfnetlink: fix insufficient validation in nfnetlink_bind") when the subscription bitmask is used. Existing userspace code code may request to listen to all of the existing netlink groups by setting an all to one subscription group bitmask. Netlink already validates subscription via setsockopt() for us. Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 9ea2aa8 commit 62924af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nfnetlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static int nfnetlink_bind(int group)
470470
int type;
471471

472472
if (group <= NFNLGRP_NONE || group > NFNLGRP_MAX)
473-
return -EINVAL;
473+
return 0;
474474

475475
type = nfnl_group2type[group];
476476

0 commit comments

Comments
 (0)