Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Network Ingress/Egress Controls

I’ve already talked about Fallback Labels and Network Peer Controls now I’m going to explain the last major labeled networking feature included in the 2.6.25 re…

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

I’ve already talked about Fallback Labels and Network Peer Controls now I’m
going to explain the last major labeled networking feature included in the
2.6.25 release of the Linux Kernel, the network ingress/egress controls. One of
the longstanding problems with the SELinux network access controls was that
they lacked any ability to control packets at the network interface level,
limiting our ability to provide access control based on the physical network and
making it impossible to provide access control for forwarded packets. The
network ingress/egress controls were designed to solve these problems by placing
SELinux network access controls at the network interface level.



The new ingress/egress controls are fairly simple: each packet entering the
system must pass an ingress access control and each packet leaving the system
must pass an egress access control. Forwarded packets must also pass an
additional forwarding access control, but I’m going to leave that for another
time and focus on the ingress/egress cases. In both the ingress and egress
access controls the network packet is subjected to network interface and
network address checks. In order to allow incoming network traffic to enter the
system you need the following two allow rules (where network_if_t is the
network interface’s label, network_addr_t is the remote host’s network address
label and peer_t is the traffic’s peer label):



allow peer_t network_if_t:netif ingress;
allow peer_t network_addr_t:node recvfrom;

Network traffic leaving the system requires similar allow rules:



allow peer_t network_if_t:netif egress;
allow peer_t network_addr_t:node sendto;

As a reminder the peer labels, peer_t in the above examples, are derived from
the original sender’s security label. In the case of incoming network traffic
the peer label is taken from the network labeling protocol, if available, and
in the case of outgoing network traffic the peer label is taken from the
application/socket which generated the traffic. The network interface and
address labels are defined as part of the SELinux policy and can be modified
on-the-fly using the semanage tool.



Moving on to a more concrete example, imagine a web server running Apache with
the eth0 network interface labeled as “wwwsrv_if_t”, no explicitly labeled
network addresses (which means addresses will be represented by the default
address label, “node_t”) and a “private_net_t” fallback label defined for
addresses that match 192.168.0.0/16. If we want to allow network traffic from
192.168.0.0/16 over the eth0 interface into the system and allow responses back
from Apache we need to write the following allow rules:



allow private_net_t wwwsrv_if_t:netif ingress;
allow private_net_t node_t:node recvfrom;
allow apache_t wwwsrv_if_t:netif egress;
allow apache_t node_t:node sendto;

Like the new network peer controls, the ingress/egress controls are currently
not enabled, protected by the same policy capability flag which protect the
peer controls, “network_peer_controls”. I am currently testing a small patch
which should solve the remaining policy issues and allow us to finally enable
this new functionality. In the meantime if you want to try it yourself you need
to uncomment the “policycap network_peer_controls;” line in the
policy_capabilities file found in the SELinux Reference Policy sources and
rebuild the policy. Good luck, and if you hit any snags don’t hesitate to drop a
comment below and I’ll help you sort it out.

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)

💬 Discussione della community e commenti

🌐 Entra nella chat principale

Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.

Briefing di sicurezza Gratuito · disdetta in 1 clic

Intelligence Digest — gratuito

Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento

Valutazione della community & prova sociale
⭐ Giudizio dei lettori
–
Ø / 5.0
Ancora nessuna valutazione dei lettori
Questo articolo ti è stato utile?
0
Lascia ora la tua valutazione
Valutazione dettagliata (facoltativa)
Contenuto & qualità
Fonte & credibilità
Attualità

Cluster di storie correlate & fonti (IA vettoriale)

6 Cluster
24 fonti
Black Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more
Latest from TechRadar 1 h fa
23 altre fonti
Caschys Blog2 h faGoogle One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt netzwelt.de1 h faDem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab Macerkopf.de1 h faFotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday CNET11 giorni faGrab Our Top Gaming Chair Pick for up to $200 Off in Secretlab’s Black Friday Sale Latest from TechRadar1 h faWalmart's Black Friday deals are live — shop our top picks now Latest from TechRadar1 h faLive: Apple Black Friday deals — save on AirPods Pro 3, iPad 11-in, Apple Watch 12, AirTags & more WIRED1 h faThe Best Early Black Friday MacBook Deals (2026) Latest from Windows Central1 h faEssential Xbox Ally travel accessories drop their prices before Black Friday IT Security News1 h faBeyond Black Friday: The Cyber Threats Retailers Need to Prepare for in 2026 Latest from TechRadar1 h faBest Black Friday streaming deals from 99 cents: Apple TV, HBO Max, Paramount+, Peacock, and more CNET1 h faThis Bissell Vacuum Tackles Tough Pet Hair and It’s Just $170 During the Black Friday Sales WIRED1 h faGPS Dog Collar for Less: Our Top Tested Picks From Fi’s Black Friday Sale (2026) Latest from Windows Central1 h faDell's excellent XPS laptops are up to 33% off in this early Black Friday sale WinFuture News2 h faBlack Friday bei VZMore: Bis 600 Euro Rabatt auf Power-Mini-PCs Latest from TechRadar2 h faThe best Black Friday turntable deals, as picked by an audio editor Latest from TechRadar1 h fa40+ best Black Friday deals in the UK — Switch 2, Shark vacuums, iPhone 18, Lego, PS5 bundles, Samsung, LG OLED TVs, and more CNET12 giorni faUpgrade Your Home Security for Less. Score Up to 65% Off With These Black Friday Ring Deals Giga.de2 h faVor Black Friday zu viel bezahlt? Mit einem Trick könnt ihr doch noch sparen - Futurezone1 h faStreaming-Sticks zur Black Week: Mit diesen Deals sparst du bis zu 46 % t3n.de2 h faBlack Friday: Diese Samsung-Angebote bei Amazon und Media Markt lohnen sich netzwelt.de4 h faBlack-Friday-Kracher: Huawei-Smartwatch mit EKG für unter 150 Euro Golem.de2 h faAnzeige: Sony WH-1000XM6 Referenz-Kopfhörer am Black Friday zum Amazon-Bestpreis Macerkopf.de3 h faAmazon Black Friday: Apple Pencil, WISO Steuer 2027, Microsoft 365, iPhone 18 Cases und mehr
Articoli simili
🔍 Verwandte News

Auch interessante Nachrichten Network Ingress/Egress Controls

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

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

💬 Caricamento dei commenti…
Trascina per aggiornare
Widgets & Topics
Loading widgets…
Nächster Beitrag