All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 7/7] selinux: drop copy-paste comment
@ 2025-03-18  8:50 Christian Göttsche
  2025-04-11 20:32 ` [PATCH RFC " Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Göttsche @ 2025-03-18  8:50 UTC (permalink / raw)
  Cc: Christian Göttsche, Paul Moore, Stephen Smalley,
	Ondrej Mosnacek, selinux, linux-kernel

From: Christian Göttsche <cgzones@googlemail.com>

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>
---
 security/selinux/netport.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/security/selinux/netport.c b/security/selinux/netport.c
index 2a315dcc4344..cfa55d703ce1 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.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RFC 7/7] selinux: drop copy-paste comment
  2025-03-18  8:50 [RFC PATCH 7/7] selinux: drop copy-paste comment Christian Göttsche
@ 2025-04-11 20:32 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2025-04-11 20:32 UTC (permalink / raw)
  To: Christian Göttsche
  Cc: Christian Göttsche, Stephen Smalley, Ondrej Mosnacek,
	selinux, linux-kernel

On Mar 18, 2025 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgoettsche@seltendoof.de> wrote:
> 
> 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>
> ---
>  security/selinux/netport.c | 6 ------
>  1 file changed, 6 deletions(-)

Merged into selinux/dev, thanks!

--
paul-moore.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-11 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-18  8:50 [RFC PATCH 7/7] selinux: drop copy-paste comment Christian Göttsche
2025-04-11 20:32 ` [PATCH RFC " Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.