]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
doc: Clarify cgroup meta variable
authorMichal Koutný <mkoutny@suse.com>
Mon, 30 Jun 2025 14:15:26 +0000 (16:15 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Jul 2025 12:23:12 +0000 (14:23 +0200)
The documentation mentions control group id where the meaning is a class
id associated to the cgroup of a socket. This used to be fine until
there came cgroup v2 that use similar terminolgy (cgroup id) for very
different thing -- a numeric identifier of a particular (v2) cgroup.

This contemporary cgroup id isn't exposed by netfilter (v2 matching is
based on paths externally). Fix the docs and decrease confusion by more
precise description of the metavariable.

[ Added comment in description to refer to socket cgroupv2 --pablo ]

Signed-off-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
doc/primary-expression.txt

index ea231fe57f7b692debf52001f3a07a8f651fecfe..2266724e72598c56ed2f3befeb6139785d74a006 100644 (file)
@@ -117,7 +117,7 @@ devgroup
 outgoing device group|
 devgroup
 |cgroup|
-control group id |
+control group net_cls.classid (for matching on cgroupv2, see *socket cgroupv2*)|
 integer (32 bit)
 |random|
 pseudo-random number|