Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
D2 Kernel Konfiguration IV für AppArmor
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation
View previous topic :: View next topic  
Author Message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4158
Location: Bavaria

PostPosted: Wed Nov 25, 2020 5:54 pm    Post subject: D2 Kernel Konfiguration IV für AppArmor Reply with quote

(Dieser Post ist Teil einer Installation-Anleitung. Falls nicht schon geschehen lies bitte: Installation Guide for Paranoid Dummies Post Nr. 3)



D.2 Kernel Konfiguration IV für AppArmor

Falls Du C.2 (noch) nicht gemacht hast, mache bitte das Kapitel "1. Vorbereitung" aus C.2 und bleibe gleich in der Sektion "Security options" und dort ...

(Wenn Du bereits IMA im Appraise-Modus aktiv hast, boote bitte gleich in den UNLOCKED-Kernel und bleibe dort bis Du D.3 gemacht hast. Boote dann erst zurück.)

... aktivierst Du dann AppArmor und disablest die beiden folgenden Zeilen - Kernel Version 5.15.x:
Code:
 [*] AppArmor support
 [ ]   Enable introspection of sha1 hashes for loaded profiles
 [ ]   Build AppArmor with debug code

Edit 2022-01-11: Kernel Version 6.1.x:
Code:
 [*] AppArmor support
 [ ]   Build AppArmor with debug code
 [ ]   Allow loaded policy to be introspected
 [ ]   Perform full verification of loaded policy

Ganz unten stellst Du AppArmor als primäres LSM ein und sorgst für die richtige Reihenfolge der LSMs:
Code:
     First legacy 'major LSM' to be initialized (AppArmor)  --->
 (lockdown,yama,loadpin,safesetid,integrity,apparmor,bpf) Ordered list of enabled LSMs


Du musst diese Kernel-Konfiguration noch nicht aktiviert haben, wenn Du die Installation D.3 machst. Nur halt dann irgendwann mal ... ;-)

Dann solltest Du folgendes im Systemlog haben:
Code:
# dmesg | grep -i apparmor
[    1.250365] LSM: builtin ordering: apparmor (enabled)
[    1.250370] LSM: exclusive chosen: apparmor
[    1.250386] LSM: initializing apparmor
[    1.250408] AppArmor: AppArmor initialized
[    1.584356] AppArmor: AppArmor Filesystem Enabled


Weiter gehts in D.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Deutsche Dokumentation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum