From 4926c3fd83d50987685a0c1131bd60b252a3d541 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 18 Mar 2025 09:50:05 +0100 Subject: [PATCH] selinux: drop copy-paste comment MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Port labeling is based on port number and protocol (TCP/UDP/...) but not based on network family (IPv4/IPv6). Signed-off-by: Christian Göttsche Signed-off-by: Paul Moore --- security/selinux/netport.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/security/selinux/netport.c b/security/selinux/netport.c index 09ef75a18d827..6fd7da4b35763 100644 --- a/security/selinux/netport.c +++ b/security/selinux/netport.c @@ -47,12 +47,6 @@ struct sel_netport { struct rcu_head rcu; }; -/* NOTE: we are using a combined hash table for both IPv4 and IPv6, the reason - * for this is that I suspect most users will not make heavy use of both - * address families at the same time so one table will usually end up wasted, - * if this becomes a problem we can always add a hash table for each address - * family later */ - static DEFINE_SPINLOCK(sel_netport_lock); static struct sel_netport_bkt sel_netport_hash[SEL_NETPORT_HASH_SIZE]; -- 2.47.3