AppArmor/Utilities: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „=== AppArmor Utilities === Nach der Installation von '''apparmor-utils''' stehen folgende Kommandozeilen-Werkzeuge zur Verfügung {| class="wikitable sortable options big" |- ! Utility !! Beschreibung |- || <tt>aa-enabled</tt> || simple Abfrage, ob AppArmor aktiviert ist |- || <tt>aa-status</tt> || Überblick über die geladenen AppArmor-Profile mit Angabe des Modus |- || <tt>aa-disable</tt> || Ein AppArmor Profile deaktivieren |- || <tt>aa-teardow…“ |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
=== AppArmor Utilities === | === AppArmor/Utilities === | ||
Nach der Installation von '''apparmor-utils''' stehen | Nach der Installation von '''apparmor-utils''' stehen verschiedene Kommandozeilenwerkzeuge (''aa-*'') zur Verfügung. | ||
; Hinweis | |||
* Viele Befehle erfordern Root-Rechte (z.B. via ''sudo''). | |||
* Details zur Profilsprache (Regeln, Rechte, Globbing, Abstractions) sind in '''[[AppArmor/Policy]]''' beschrieben. | |||
== Start == | |||
; Status prüfen | |||
<syntaxhighlight lang="bash" highlight="1" line copy> | |||
sudo aa-enabled | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" highlight="1" line copy> | |||
sudo aa-status | |||
</syntaxhighlight> | |||
; Profilmodus umschalten | |||
<syntaxhighlight lang="bash" highlight="1" line copy> | |||
sudo aa-complain PROFIL | |||
|| | </syntaxhighlight> | ||
|- | |||
| | <syntaxhighlight lang="bash" highlight="1" line copy> | ||
|| | sudo aa-enforce PROFIL | ||
|- | </syntaxhighlight> | ||
| | |||
|| | <syntaxhighlight lang="bash" highlight="1" line copy> | ||
|- | sudo aa-audit PROFIL | ||
| | </syntaxhighlight> | ||
|| Profil in den | |||
|- | == Utilities nach Aufgaben == | ||
| | {| class="wikitable sortable options big" | ||
|| Profil in den | |- | ||
|- | ! Utility !! Aufgabe !! Beschreibung | ||
| | |- | ||
|| | | ''aa-enabled'' || Status || Prüft, ob AppArmor aktiviert ist | ||
| | |- | ||
| | | ''aa-status'' || Status/Übersicht || Zeigt geladene Profile und deren Modi | ||
|- | |||
|- | | ''aa-complain'' || Profilmodus ändern || Setzt Profil in den ''complain''-Modus | ||
| | |- | ||
| ''aa-enforce'' || Profilmodus ändern || Setzt Profil in den ''enforce''-Modus | |||
| | |- | ||
| | | ''aa-audit'' || Profilmodus ändern || Setzt Profil in den ''audit''-Modus | ||
|| | |- | ||
|- | | ''aa-disable'' || Profile laden/entladen || Deaktiviert ein Profil (wird nicht automatisch geladen) | ||
| | |- | ||
|| | | ''aa-teardown'' || Profile laden/entladen || Entlädt alle Profile aus dem Kernel (AppArmor zur Laufzeit effektiv deaktiviert) | ||
|- | |||
| | | ''aa-exec'' || Prozess starten || Startet eine Anwendung unter einem angegebenen Profil | ||
| | |||
|- | |||
| | |||
|| | |||
|| | |||
|- | |- | ||
| ''aa-unconfined'' || Analyse || Listet Prozesse mit Netzwerkzugriff ohne Profil | |||
|- | |||
| ''aa-autodep'' || Profil erstellen || Erzeugt ein Basisprofil im ''complain''-Modus | |||
|- | |||
| ''aa-genprof'' || Profil erstellen || Interaktive Profilerstellung, am Ende typischerweise ''enforce'' | |||
|- | |||
| ''aa-logprof'' || Profil pflegen || Ergänzt Regeln interaktiv anhand der Log-Einträge | |||
|- | |||
| ''aa-cleanprof'' || Profil pflegen || Räumt Profile auf (z.B. nicht verwendete oder redundante Regeln) | |||
|- | |||
| ''aa-easyprof'' || Profil erstellen || Erstellt ein Profil auf Basis einfacher Vorlagen | |||
|- | |||
| ''aa-mergeprof'' || Profil pflegen || Führt Profile zusammen | |||
|- | |||
| ''aa-decode'' || Analyse || Dekodiert Hex-Strings aus AppArmor-Logs in ASCII | |||
|- | |||
| ''aa-features-abi'' || ABI/Features || Validiert/ändert die AppArmor-Feature-ABI | |||
|- | |||
| ''aa-remove-unknown'' || Profilpflege || Entfernt unbekannte Profile | |||
|- | |||
| ''aa-update-browser'' || Profilpflege || Aktualisiert Browser-Profile | |||
|} | |} | ||
; Hinweis | |||
* ''aa-easyprof'' erzeugt häufig weniger restriktive Profile als ''aa-genprof'' oder ''aa-logprof'' | |||
* ''aa-logprof'' verarbeitet je nach Systemkonfiguration Log-Einträge (z.B. aus ''/var/log/syslog'') | |||
<noinclude> | |||
== Anhang == | |||
=== Siehe auch === | |||
<div style="column-count:2"> | |||
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree> | |||
</div> | |||
---- | |||
{{Special:PrefixIndex/{{BASEPAGENAME}}/}} | |||
=== Dokumentation === | |||
<!-- | |||
; Man-Page | |||
# | |||
; Info-Pages | |||
--> | |||
=== Links === | |||
==== Projekt ==== | |||
==== Weblinks ==== | |||
<!-- | |||
{{DEFAULTSORT:new}} | |||
{{DISPLAYTITLE:new}} | |||
--> | |||
[[Kategorie:AppArmor]] | [[Kategorie:AppArmor]] | ||
</noinclude> | |||
Aktuelle Version vom 12. Dezember 2025, 17:40 Uhr
AppArmor/Utilities
Nach der Installation von apparmor-utils stehen verschiedene Kommandozeilenwerkzeuge (aa-*) zur Verfügung.
- Hinweis
- Viele Befehle erfordern Root-Rechte (z.B. via sudo).
- Details zur Profilsprache (Regeln, Rechte, Globbing, Abstractions) sind in AppArmor/Policy beschrieben.
Start
- Status prüfen
sudo aa-enabled
sudo aa-status
- Profilmodus umschalten
sudo aa-complain PROFIL
sudo aa-enforce PROFIL
sudo aa-audit PROFIL
Utilities nach Aufgaben
| Utility | Aufgabe | Beschreibung |
|---|---|---|
| aa-enabled | Status | Prüft, ob AppArmor aktiviert ist |
| aa-status | Status/Übersicht | Zeigt geladene Profile und deren Modi |
| aa-complain | Profilmodus ändern | Setzt Profil in den complain-Modus |
| aa-enforce | Profilmodus ändern | Setzt Profil in den enforce-Modus |
| aa-audit | Profilmodus ändern | Setzt Profil in den audit-Modus |
| aa-disable | Profile laden/entladen | Deaktiviert ein Profil (wird nicht automatisch geladen) |
| aa-teardown | Profile laden/entladen | Entlädt alle Profile aus dem Kernel (AppArmor zur Laufzeit effektiv deaktiviert) |
| aa-exec | Prozess starten | Startet eine Anwendung unter einem angegebenen Profil |
| aa-unconfined | Analyse | Listet Prozesse mit Netzwerkzugriff ohne Profil |
| aa-autodep | Profil erstellen | Erzeugt ein Basisprofil im complain-Modus |
| aa-genprof | Profil erstellen | Interaktive Profilerstellung, am Ende typischerweise enforce |
| aa-logprof | Profil pflegen | Ergänzt Regeln interaktiv anhand der Log-Einträge |
| aa-cleanprof | Profil pflegen | Räumt Profile auf (z.B. nicht verwendete oder redundante Regeln) |
| aa-easyprof | Profil erstellen | Erstellt ein Profil auf Basis einfacher Vorlagen |
| aa-mergeprof | Profil pflegen | Führt Profile zusammen |
| aa-decode | Analyse | Dekodiert Hex-Strings aus AppArmor-Logs in ASCII |
| aa-features-abi | ABI/Features | Validiert/ändert die AppArmor-Feature-ABI |
| aa-remove-unknown | Profilpflege | Entfernt unbekannte Profile |
| aa-update-browser | Profilpflege | Aktualisiert Browser-Profile |
- Hinweis
- aa-easyprof erzeugt häufig weniger restriktive Profile als aa-genprof oder aa-logprof
- aa-logprof verarbeitet je nach Systemkonfiguration Log-Einträge (z.B. aus /var/log/syslog)
Anhang
Siehe auch
Dokumentation
Links
Projekt
Weblinks