From nobody Mon Jan 23 22:11:52 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P14885lW1z2t0kc; Mon, 23 Jan 2023 22:11:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P14884ldZz3KnX; Mon, 23 Jan 2023 22:11:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674511912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gFY8ggpmNYS2/beug/+FE7jkapGQpQVlqC7AvYrorDs=; b=IigOa4+PJereWWtfAW56UJj2MtRHMxotWkcC6eVVVHu2RLZhhGjwIbZsoH4D6qeI9YHAzs Mh2dCNaRD0A7hj68eoq1UaUSPjMXAhlOs7VVWOnkVZ91jz8OzzM3dOp02BvtYyl2qJNUu1 wap+xUT2Puck44v1LXn6lp4wdzWsUxnA0GHzzuLgku1ksgeUWIP0OW/oPY6RxZUFDfpzkw 7SYVh68WSYCpe6C/O8yRXfVDYVgoPdIEpZLUuObRG+GZDvtRYxlkkJ7bpY/LRFLwBy0PO2 ZVId5tXHQDI9B/4Dz2DL2sSm6u8TfJsk1NbBw5j+lJ9u3eW1KO/1vEt6eZTi0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674511912; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gFY8ggpmNYS2/beug/+FE7jkapGQpQVlqC7AvYrorDs=; b=ZWnPkcmF1asGznvIpE7Tjy0fvUtIvLhOr2jVJsYoEowahiVii0LaBclWU9yEd6i1Xz46zk WAgk3BsADsFwS17vNrj11kzRZDweWu5gLfuLQi8XkNCfpuzT48XyPA9JhPCrcMjrkcULJw Y0pp83yy/wcTv0AO2bt3Ecz50GaOEMrTsOqF7YiA7sNAtPkAA2wy/TnK5E2gl6ZKrNKwdc 3Vxy4ioFInxwahOYSXsaoJeO8Jm32ScNGtxAHJwCV/VcBADbtq2RMsNfZIZeXJnjewjNsi tDkBig5Nk6Plo1WszorbKnXG2XEpwu33MWuH7SYNVKCI9RukgjtODS8wJ5/vyA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674511912; a=rsa-sha256; cv=none; b=PbPdrbGIssAaREIWBErLUgk+S/tKGqHULbBVrlh7Pr77COZg4U+7q5bWMoFpNS58z3Hpu6 xGwPXGFlVhGcV97FdFORkvoWYsJu6Zyw35r1HIMj/zMH4ZBrtOUVN6F8w2a6KTF/ejsvS4 sNa1faJJHtzClcayw5Z4bfQv4VsASilOiG2U+8iKwQgQSv9rXuIxcFJnqGIRcsZwWvyu1T g/EBbowCc/J1nVHxtrz4BEvlmZws27RYS+FGrCnUVVNCcwee71eK9lt6rr8wC4eo11zgcv bbVdaojPZ+UviXRZajx5JBLbJmf7iwc0SiU4RpLpIcYh/6sr3PodIu0kMihGhg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P14883pXHzlr0; Mon, 23 Jan 2023 22:11:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30NMBqfw012660; Mon, 23 Jan 2023 22:11:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30NMBqBv012659; Mon, 23 Jan 2023 22:11:52 GMT (envelope-from git) Date: Mon, 23 Jan 2023 22:11:52 GMT Message-Id: <202301232211.30NMBqBv012659@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: c18674d6313c - stable/13 - netlink: fix generic netlink privilege check. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: c18674d6313c798ea8e193145f94c321274d7e45 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=c18674d6313c798ea8e193145f94c321274d7e45 commit c18674d6313c798ea8e193145f94c321274d7e45 Author: Alexander V. Chernikov AuthorDate: 2022-10-31 13:40:25 +0000 Commit: Alexander V. Chernikov 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, }, };