]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selinux: drop copy-paste comment
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 18 Mar 2025 08:50:05 +0000 (09:50 +0100)
committerPaul Moore <paul@paul-moore.com>
Fri, 11 Apr 2025 20:32:07 +0000 (16:32 -0400)
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 <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/netport.c

index 09ef75a18d827af7727aff835de7c3ca2a310b18..6fd7da4b35763084c4d98be25279ce71bed3e985 100644 (file)
@@ -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];