
Wie implementiert Ubuntu SELinux...? Welche Pakete (Module) sind an der Implementierung von SELinux auf Ubuntu beteiligt?
Antwort1
Wie implementiert Ubuntu SELinux...?
selinux
ist nicht standardmäßig installiert oder aktiviert. Wir verwendenrüstungvonStandard. DerUbuntu-Wiki-Seite für SELinuxbehauptet sogar ...
Warnung
Die hier dokumentierten Ubuntu-spezifischen Pakete „selinux“ und „selinux-policy-ubuntu“ haben seit Karmic nicht mehr viel Aufmerksamkeit erhalten und scheinen in Precise effektiv defekt zu sein.
Wenn Sie SELinux in Ubuntu verwenden möchten, werden die Pakete "selinux-basics" und "selinux-policy-default" von Debian weiterhin aktiv gepflegt. Die Dokumentation zu diesen Paketen finden Sie unterhttp://wiki.debian.org/SELinux
enthält aber auch Anweisungen zur Installation:
SELinux kann in Ubuntu durch die Installation des Metapakets „selinux“ aktiviert werden, das die erforderlichen Änderungen am System vornimmt und die Tresys-Richtlinien für Ubuntu installiert:
sudo apt-get install selinux
Nach der Installation werden Sie aufgefordert, das System neu zu starten, um SELinux zu kennzeichnen und zu aktivieren.
Aber es könnte klüger sein, die Debian-Pakete manuell zu installieren ...
Um welche Pakete (Module) handelt es sich?
Antwort2
Ich glaube, Sie müssen Apparmor entfernen, bevor Sie SELinux installieren:
sudo apt-get remove apparmor
Entsprechend derSELinux-Wiki-Seite:
Ab Hardy Heron wurde SELinux in Ubuntu integriert und kann über apt installiert werden.
Installieren Sie das Selinux-Paket:
sudo apt-get install selinux
Ändern Sie den SELinux-Modus in /etc/selinux/config (optional):
Strikt
sudo sed -i 's/SELINUX=.*/SELINUX=enforcing/' /etc/selinux/config
Permissiv
sudo sed -i 's/SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
Neustart
Beim Herunterfahren werden alle Dateien im System gekennzeichnet. Dies kann je nach Anzahl der Dateien und Festplattengeschwindigkeit einige Zeit dauern.
Eine Suche mit apt-cache search
ergibt diese Pakete:
postgresql-contrib-9.4 - additional facilities for PostgreSQL
ruby-selinux - Ruby bindings to SELinux shared libraries
checkpolicy - SELinux policy compiler
debian-handbook - reference book for Debian users and system administrators
joe-jupp - reimplement the joe Debian package using jupp
jupp - user friendly full screen text editor
libseaudit-dev - Security Enhanced Linux audit message parser development
libseaudit4 - Security Enhanced Linux audit message parsing library
libsefs-dev - Security Enhanced Linux file context management development
libsefs4 - Security Enhanced Linux file context management
libsetools-java - SETools Java bindings (architecture-independent)
libsetools-tcl - SETools Tcl bindings
libtomoyotools3 - lightweight Linux Mandatory Access Control system - library
policycoreutils - SELinux core policy utilities
python-selinux - Python bindings to SELinux shared libraries
python-semanage - Python bindings for SELinux policy management
python-sepolgen - Python module used in SELinux policy generation
python-sepolicy - Python binding for SELinux Policy Analyses
python-setools - SETools Python bindings
ruby-semanage - Ruby bindings to for SELinux policy management
selinux - Security-Enhanced Linux runtime support
selinux-basics - SELinux basic support
selinux-policy-default - Strict and Targeted variants of the SELinux policy
selinux-policy-dev - Headers from the SELinux reference policy for building modules
selinux-policy-doc - Documentation for the SELinux reference policy
selinux-policy-dummy - Empty Security-Enhanced Linux policy (dummy package)
selinux-policy-mls - MLS (Multi Level Security) variant of the SELinux policy
selinux-policy-src - Source of the SELinux reference policy for customization
selinux-policy-ubuntu - Security-Enhanced Linux Reference Policy
selinux-policy-ubuntu-dev - Security-Enhanced Linux Reference Policy Development Headers
selinux-policy-ubuntu-doc - Security-Enhanced Linux Reference Policy Documentation
selinux-utils - SELinux utility programs
setools - tools for Security Enhanced Linux policy analysis
setools-gui - GUI tools for Security Enhanced Linux policy analysis