Thread (4 messages) 4 messages, 4 authors, 2025-03-04

Re: [PATCH] netfilter: Make xt_cgroup independent from net_cls

From: Jan Engelhardt <hidden>
Date: 2025-02-28 18:11:42
Also in: cgroups, lkml, netfilter-devel

On Friday 2025-02-28 17:52, Michal Koutný wrote:
quoted hunk ↗ jump to hunk
@@ -23,6 +23,14 @@ MODULE_DESCRIPTION("Xtables: process control group matching");
MODULE_ALIAS("ipt_cgroup");
MODULE_ALIAS("ip6t_cgroup");

+static bool possible_classid(u32 classid)
+{
+	if (!IS_ENABLED(CONFIG_CGROUP_NET_CLASSID) && classid > 0)
+		return false;
+	else
+		return true;
+}
This has quite the potential for terseness ;-)

{
	return IS_ENABLED(CONFIG_CGROUP_NET_CLASSID) || classid == 0;
}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help