aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2025-03-18 09:50:05 +0100
committerPaul Moore <paul@paul-moore.com>2025-04-11 16:32:07 -0400
commit4926c3fd83d50987685a0c1131bd60b252a3d541 (patch)
tree4a83785ea1e531a492188ff46572472f3133249e /security
parentselinux: unify OOM handling in network hashtables (diff)
downloadlinux-rng-4926c3fd83d50987685a0c1131bd60b252a3d541.tar.xz
linux-rng-4926c3fd83d50987685a0c1131bd60b252a3d541.zip
selinux: drop copy-paste comment
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>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/netport.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/security/selinux/netport.c b/security/selinux/netport.c
index 09ef75a18d82..6fd7da4b3576 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];