Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Network Peer Controls

In addition to Fallback Labels another new feature added to the 2.6.25 release of the Linux Kernel was the consolidation of the access control permissions for…

Beitrag
0
Seite
0
↗ Quelle (paul-moore.com)
Cloud & Tech-Stack · 4 Min. Lesezeit
Quelle: paul-moore.com
Rubrik: Unix & Linux Server

In addition to Fallback Labels another new feature added to the 2.6.25 release
of the Linux Kernel was the consolidation of the access control permissions for
the different peer labeling mechanisms supported by SELinux. This consolidation
has several benefits including better handling of traffic with multiple peer
labels (all of the labels must be the same), elimination of confusing and
duplicated per-packet access checks, and the creation of a new object class
which abstracts away the underlying labeling protocol making policy development
easier and more consistent.



Prior to the new network peer controls each peer labeling mechanism, NetLabel
and Labeled IPsec, had separate access controls. In the early days of NetLabel
this made sense as it allowed NetLabel development to proceed without impacting
the existing Labeled IPsec mechanism, however, as time has progressed the
additional access controls have proven problematic both from a code and policy
management point of view. Those familiar with the old system know that in order
to receive network traffic labeled with either NetLabel or Labeled IPsec you
needed the following two allow rules (where socket_t is the receiving socket’s
label and peer_t is the packet’s peer label):



allow socket_t peer_t:{ tcp_socket udp_socket rawip_socket } recvfrom;
allow socket_t peer_t:association recvfrom;

The first allow rule allows NetLabel traffic whereas the second allow rule
allows Labeled IPsec traffic. This duplication of access checks led to some
interesting situations when only one peer labeling mechanism was in use, which
happens to be the common case. The problem is that if you were using Labeled
IPsec to browse the web you would need the following permissions:



allow firefox_t unlabeled_t:tcp_socket recvfrom;
allow firefox_t apache_t:association recvfrom;

You notice how the first access check requires access to unlabeled_t? This makes
sense as NetLabel is not in use for this particular connection and is not able
to generate a peer label, but it can be very confusing for users, policy writers
and pretty much everyone else. The same problem happens when NetLabel is used
and Labeled IPsec is not.



The solution to this was to consolidate the two access controls into a single
access control. Doing so would not only simplify SELinux policy but also allow
us to cleanup and consolidate much of the related SELinux kernel code. The new
network peer controls work by deriving a single peer label for a network packet
and then applying a single access check. In the rare case that multiple peer
labels are present on a packet they must be equivalent for the packet to be
considered valid; invalid packets are dropped. The resulting single access check
looks like this:



allow socket_t peer_t:peer recv;

The new access check behaves exactly like the previous checks in that socket_t
is the security label of the receiving socket and peer_t is the packet’s peer
label (unlabeled_t when no peer labeling is in use). The difference being that
it is only evaluated once per packet and is protocol agnostic; a big improvement
on both counts.



While I believe most would agree that the new network peer controls are a
welcome change, the fact remains that they are a change and a mechanism must
exist to allow a smooth transition between the old and new controls. To solve
this problem the concept of “policy capabilities” (yes, I know it is a poor
name) was introduced which allows policy writers to selectively enable or
disable kernel features. As of right now I am not aware of any SELinux policy,
including the Reference Policy which enables the new controls. You can check
your own system by running the following command (0 means the legacy controls
are in use, 1 means the new controls are in use):



# cat /selinux/policy_capabilities/network_peer_controls

Later on I’ll explain how to enable the new network peer controls, but first I
need to describe the new network ingress/egress access controls which are also
enabled by the “network_peer_controls” policy capability. I don’t want anyone
having a nasty surprise :) More on the ingress/egress controls in the next post.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness

Related story clusters & sources (vector AI)

6 Cluster
26 sources
Black Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert
Latest from TechRadar 15 min. ago
25 more sources
CNET6 years agoOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CNET19 min. agoBrighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CNET12 min. agoLive: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off Golem.de25 min. agoAnzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PC-WELT37 min. agoLuminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro Latest from TechRadar52 min. agoThis is the pair of open earbuds to hunt down over Black Friday Latest from TechRadar1 hour agoBest AirPods Black Friday deals: all live savings on AirPods Pro 3 and more Computer Bild1 hour agoPhilips Sonicare DiamondClean 9000 zum Black Friday günstiger netzwelt.de2 hours agoESR startet mit Black-Friday-Rabatten: Diese AirPods-Hüllen lohnen sich jetzt netzwelt.de2 hours agoPlayStation 5 geschenkt: Diese Black-Friday-Aktion legt die Konsole gratis obendrauf netzwelt.de1 hour ago6 Dyson-Staubsauger im Vergleich: Dieser Sauger wird am Black Friday überraschend zum Preis/Leistungssieger netzwelt.de1 hour agoMonitore im Angebot zum Black Friday: Gutes Bild für Office, Gaming und mehr Golem.de55 min. agoAnzeige: Akkuschrauber mit 20 Bits zum Black Friday erstmals unter 50 Euro bei Amazon PC-WELT1 hour agoDie günstigsten Handytarife an Black Friday von 10 GB bis Unlimited: Hier lohnt sich ein Wechsel PC-WELT1 hour agoBlack Friday 2026 bei LiberNovo: Ergonomische Bürostühle mit bis zu 44 Prozent Rabatt Latest from TechRadar1 hour agoThe best Black Friday robot vacuum deals: Dreame, Shark, Dyson, and Roborock Golem.de1 hour agoAnzeige: Topdon-Starthilfe-Powerbank für Kfz zum Black-Friday-Bestpreis nur rund 85 Euro heise online News1 hour agoBlack Friday: Die besten Kopfhörer zum Tiefstpreis – Sonos Ace, Nothing & Shokz Latest from Windows Central1 hour agoDell's Black Friday deals drop major savings on Alienware OLED monitors CNET2 years agoMake Every Night Game Night and Save $90 on the Nex Playground With This Black Friday Deal DEV Community1 hour agoThe app is part of the gadget: 14,000 App Store reviews of 28 device apps before Black Friday Latest from TechRadar2 hours agoBlack Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more Caschys Blog3 hours agoGoogle One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt netzwelt.de2 hours agoDem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab Macerkopf.de2 hours agoFotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten Network Peer Controls

Thematisch verwandte Begriffe: Network, Peer, Controls · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag