Skip to content

Commit 4926c3f

Browse files
cgzonespcmoore
authored andcommitted
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>
1 parent cde3b1b commit 4926c3f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

security/selinux/netport.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ struct sel_netport {
4747
struct rcu_head rcu;
4848
};
4949

50-
/* NOTE: we are using a combined hash table for both IPv4 and IPv6, the reason
51-
* for this is that I suspect most users will not make heavy use of both
52-
* address families at the same time so one table will usually end up wasted,
53-
* if this becomes a problem we can always add a hash table for each address
54-
* family later */
55-
5650
static DEFINE_SPINLOCK(sel_netport_lock);
5751
static struct sel_netport_bkt sel_netport_hash[SEL_NETPORT_HASH_SIZE];
5852

0 commit comments

Comments
 (0)