git: acc65df45a8d - main - netlink: require proper privileges when adding neighbor.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Apr 2023 12:29:09 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=acc65df45a8d065662436b9a831c9dc3d02d33a1 commit acc65df45a8d065662436b9a831c9dc3d02d33a1 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-25 12:28:22 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-25 12:28:22 +0000 netlink: require proper privileges when adding neighbor. MFC after: 3 days --- sys/netlink/route/neigh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netlink/route/neigh.c b/sys/netlink/route/neigh.c index 65b5c2b8be4e..4275d9cafede 100644 --- a/sys/netlink/route/neigh.c +++ b/sys/netlink/route/neigh.c @@ -539,6 +539,7 @@ static const struct rtnl_cmd_handler cmd_handlers[] = { .cmd = NL_RTM_NEWNEIGH, .name = "RTM_NEWNEIGH", .cb = &rtnl_handle_newneigh, + .priv = PRIV_NET_ROUTE, }, { .cmd = NL_RTM_DELNEIGH,