git: c18674d6313c - stable/13 - netlink: fix generic netlink privilege check.

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Mon, 23 Jan 2023 22:11:52 UTC
The branch stable/13 has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=c18674d6313c798ea8e193145f94c321274d7e45

commit c18674d6313c798ea8e193145f94c321274d7e45
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-10-31 13:40:25 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-23 22:04:02 +0000

    netlink: fix generic netlink privilege check.
    
    Reported by:    bapt
    
    (cherry picked from commit fc47afbfafca9c72ea8866e71a05ed7ee4c0fce6)
---
 sys/netlink/netlink_generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netlink/netlink_generic.c b/sys/netlink/netlink_generic.c
index 7d226f77e44b..94baf12c874e 100644
--- a/sys/netlink/netlink_generic.c
+++ b/sys/netlink/netlink_generic.c
@@ -435,7 +435,7 @@ static const struct genl_cmd nlctrl_cmds[] = {
 		.cmd_num = CTRL_CMD_GETFAMILY,
 		.cmd_name = "GETFAMILY",
 		.cmd_cb = nlctrl_handle_getfamily,
-		.cmd_flags = GENL_CMD_CAP_DO | GENL_CMD_CAP_DUMP, GENL_CMD_CAP_HASPOL,
+		.cmd_flags = GENL_CMD_CAP_DO | GENL_CMD_CAP_DUMP | GENL_CMD_CAP_HASPOL,
 	},
 };