SELinux unter Debian: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 2: | Zeile 2: | ||
*sudo systemctl stop apparmor | *sudo systemctl stop apparmor | ||
*sudo systemctl disable apparmor | *sudo systemctl disable apparmor | ||
| + | * aa-teardown | ||
| + | * aa-status | ||
=Repos updaten und SELinux installieren= | =Repos updaten und SELinux installieren= | ||
Version vom 19. September 2023, 05:51 Uhr
AppArmor deaktivieren, da es zu Konflikten führen kann
- sudo systemctl stop apparmor
- sudo systemctl disable apparmor
- aa-teardown
- aa-status
Repos updaten und SELinux installieren
- apt update && upgrade
- apt install selinux-basics selinux-policy-default auditd policycoreutils-dev
SELinux aktivieren
- selinux-activate
Nun kann das System neu
- systemctl reboot
Zum login über ssh brauchen wir
- setsebool ssh_sysadm_login on
System scharf schalten
- setenforce 1
interfaceinfo für audit2allow Vorschläge erzeugen
- sepolgen-ifgen