Zum Inhalt springen

Seminar/Linux/SELinux: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
 
(70 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
== Übersicht ==
'''Seminar/Linux/SELinux''' - SELinux
 
== Beschreibung ==
 
=== Seminarziele ===
 
=== Lehrmethode ===
* [[Interaktiver Lehrvortrag ]]
* [[Praktische Übungen]]
* [[Diskussion]]
* [[Wiederholungs-/Vertiefung-Tests]]
 
=== Zielgruppe ===
 
=== Vorkenntnisse ===
; Notwendig
* Linux Grundlagen
* Linux Administration
 
; Hilfreich
<!--
* [[Informationssicherheit]]
* [[IT-Sicherheit]]
* [[Netzwerke]]
* [[ITIL]]
* [[Qualitätsmanagement]]
* [[ISO 27001]]
-->
 
=== Dauer ===
; 4 Tage
* 36 Unterrichtseinheiten (je 45min)
 
=== Seminarzeiten ===
<!--
{{:Foxwiki:Vorlage/Artikel/Seminar/Seminarzeiten}}
-->
 
== Inhalte ==
{| class="wikitable gnu options big col1center col3center"
{| class="wikitable gnu options big col1center col3center"
! Kapitel !! Thema !! Gewichtung
! Kapitel !! Thema  
!Beschreibung!! Gewichtung
|-
|-
| 01 || [[SELinux/Grundlagen|Einführung]] || 1  
| 01 || [[Linux/SELinux/Grundlagen|Einführung]]  
| || 1  
|-
|-
| 02 || [[SELinux/Dateien|Security Context auf Dateien und Verzeichnissen]] || 1
| 02 || [[Linux/SELinux/Dateien|Security Context auf Dateien und Verzeichnissen]]  
| || 1
|-
|-
| 03 || [[SELinux/Extended File Attributes|Extended File Attributes]] || 1
| 03 || [[Linux/SELinux/Extended File Attributes|Extended File Attributes]]  
| || 1
|-
|-
| 04 || [[SELinux/Security Context|Security Context]] || 1
| 04 || [[Linux/SELinux/Security Context|Security Context]]  
| || 1
|-
|-
| 05 || [[SELinux/File Context|File Context]] || 1
| 05 || [[Linux/SELinux/File Context|File Context]]  
| || 1
|-
|-
| 06 || [[SELinux/Context Expressions|Context Expressions]] || 1
| 06 || [[Linux/SELinux/Context Expressions|Context Expressions]]  
| || 1
|-
|-
| 07 || [[SELinux/Security Context von Datei|Security Context von Datei]] || 1
| 07 || [[Linux/SELinux/Security Context von Datei|Security Context von Datei]]  
| || 1
|-
|-
| 08 || [[SELinux/Named File Transitions Rules|Named File Transitions Rules]] || 1
| 08 || [[Linux/SELinux/Named File Transitions Rules|Named File Transitions Rules]]  
| || 1
|-
|-
| 09 || [[SELinux/Systemd und Temporäre Verzeichnisse|Systemd und Temporäre Verzeichnisse]] || 1
| 09 || [[Linux/SELinux/Systemd und Temporäre Verzeichnisse|Systemd und Temporäre Verzeichnisse]]  
| || 1
|-
|-
| 10 || [[SELinux/strace context printing|strace context printing]] || 1
| 10 || [[Linux/SELinux/strace context printing|strace context printing]]  
| || 1
|-
|-
| 11 || [[SELinux/Benutzer Login|Benutzer Login]] || 1
| 11 || [[Linux/SELinux/Benutzer Login|Benutzer Login]]  
| || 1
|-
|-
| 12 || [[SELinux/Kategorien|Kategorien]] || 1
| 12 || [[Linux/SELinux/Kategorien|Kategorien]]  
| || 1
|-
|-
| 13 || [[SELinux/Rollen|Rollen]] || 1
| 13 || [[Linux/SELinux/Rollen|Rollen]]  
| || 1
|-
|-
| 14 || [[SELinux/Pluggable Authentication Modules|PAM]] || 1
| 14 || [[Linux/SELinux/Pluggable Authentication Modules|PAM]]  
| || 1
|-
|-
| 15 || [[SELinux/Prozess Context|Prozess Context]] || 1
| 15 || [[Linux/SELinux/Prozess Context|Prozess Context]]  
| || 1
|-
|-
| 16 || [[SELinux/Ansible|SELinux und Ansible]] || 1
| 16 || [[Linux/SELinux/Ansible|SELinux und Ansible]]  
| || 1
|-
|-
| 17 || [[SELinux/Salt|SELinux und Salt]] || 1
| 17 || [[Linux/SELinux/Salt|SELinux und Salt]]  
| || 1
|-
|-
| 18 || [[SELinux/Container|SELinux und Container]] || 1
| 18 || [[Linux/SELinux/Container|SELinux und Container]]  
| || 1
|}
|}


<!--
== Prüfung ==
[[IT-Grundschutz/Praktiker/Prüfung|Zertifikatsprüfung]] zum [[Seminar/Grundschutz/Praktiker|Grundschutz-Praktiker]]


{{DISPLAYTITLE:Seminar/SELinux}}
; Prüfungstermine
* Am letzten Seminartag
* Nach Vereinbarung


[[Kategorie:Seminar/Linux]]
; Prüfungsort
[[Kategorie:Seminar/Sicherheit]]
* Vor Ort
[[Kategorie:SELinux]]
* Online


; Prüfungs-Tipp
: Vor- und Nachbereitung der Schulungstage


= TMP =
; Weitere Informationen
* [[...]]
-->


== Grundlagen & Security Context ==
<noinclude>


=== Ziel ===
== Anhang ==
Verstehen, wie SELinux funktioniert und wie Kontexte aufgebaut sind
=== Verwandte Seminare ===
; Sicherheit
{{Special:PrefixIndex/Seminar/Sicherheit}}


=== Ergebnis ===
; Linux
Aufbau von SELinux-Kontexten verstehen , lesen und interpretieren
{{Special:PrefixIndex/Seminar/Linux}}


=== Inhalte ===
=== Skript ===


* Einführung in SELinux – Nutzen und typische Einsatzszenarien
=== Siehe auch ===
* Security Context auf Dateien und Verzeichnissen
* Interpretation des SELinux Context Types
* Extended (File) Attributes (xattr) – Namespaces, Verwaltung mit getfattr/setfattr
* Syscall-Analyse mit strace (stat, fstat, getxattr, …)
* Standardverhalten bei mv und cp
* Einfluss von restorecond auf Labels
* SELinux Optionen bei mv, cp, mkdir, tar, rsync


== File Context Verwaltung & Security Context Policies ==
==== Weblinks ====


=== Ziel ===
[[Kategorie:Seminar/Linux]]
Kontexte gezielt setzen, verwalten und reparieren
[[Kategorie:Seminar/Sicherheit]]
 
=== Ergebnis ===
File Contexts korrekt setzen, Policies anpassen und fehlerhafte Labels systematisch reparieren.
 
* Context setzen mit chcon, semanage, setfiles, fixfiles
* File Context Regeln – Aufbau, Regex, Prioritätsregeln
* Context Expressions und matchpathcon
* Reparieren von falsch gesetzten Labels mit restorecon (inkl. SHA256 digests)
* Äquivalenzregeln definieren
* Named File Transition Rules
* Mount-Optionen für SELinux (context=, defcontext=, fscontext=, rootcontext=)
* Systemd und temporäre Verzeichnisse – Context via systemd-tmpfiles
* Lokale Änderungen exportieren/importieren mit semanage
 
== Benutzer, Rollen, Container & Automatisierung ==
 
=== Ziel ===
SELinux in realen Betriebsumgebungen professionell einsetzen
 
=== Ergebnis ===
 
=== Inhalte ===


* SELinux User & Role Mapping im Detail
</noinclude>
* Linux User ↔ SELinux User Zuordnung
* Erstellen eigener SELinux User
* Arbeiten mit SELinux Roles (newrole, sudo, runcon)
* Verwalten von MCS Categories (chcat, setrans, mcstransd)
* Pluggable Authentication Modules (PAM): pam_selinux, pam_sepermit, pam_namespace
* Prozess Context, Domain Transitions, Memory Protection, NNP
* SELinux & Ansible – native Module, Custom Policy verteilen
* SELinux & Salt – native Module, Custom Policy verteilen
* SELinux & Container – Podman, MCS, Volumes, udica
* Eigene Container Policy mit udica erstellen

Aktuelle Version vom 13. Juni 2026, 09:37 Uhr