Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 46833a86 authored by Mike Pecovnik's avatar Mike Pecovnik Committed by David S. Miller
Browse files

net: Fix permission check in netlink_connect()



netlink_sendmsg() was changed to prevent non-root processes from sending
messages with dst_pid != 0.
netlink_connect() however still only checks if nladdr->nl_groups is set.
This patch modifies netlink_connect() to check for the same condition.

Signed-off-by: default avatarMike Pecovnik <mike.pecovnik@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 687d705c
Loading
Loading
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