From 951a8a84411da6b71cee11d8c9feb993b984acf5 Mon Sep 17 00:00:00 2001 From: Silvino Date: Sun, 16 Jun 2019 05:03:49 +0100 Subject: apparmor and hardening revision --- core/apparmor.html | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'core/apparmor.html') diff --git a/core/apparmor.html b/core/apparmor.html index 0052a68..8b7a30c 100644 --- a/core/apparmor.html +++ b/core/apparmor.html @@ -109,6 +109,35 @@

Create profile with audit

+

Tools use log as a source to build profiles, it is + necessary to disable log rate limit;

+ +
+        # sysctl -w kernel.printk_ratelimit=0
+        
+ +

Start aa-genprof;

+ +
+        $ sudo aa-genprof /usr/bin/lynx
+        
+ +

Execute application with all common application options + and parts;

+ +

After initial automatic configuration enable profile in + complain mode. Use aa-logprof when rules need to be adapted.

+ +
+        # aa-logprof
+        
+ +

Once profile rules become well defined enable profile in + enforce mode with aa-enforce;

+ +

Monitor logs with aa-notify; + +

Create profile manually

To create a new profile, let's say for lynx, @@ -136,8 +165,6 @@ } - - Core OS Index

This is part of the Hive System Documentation. Copyright (C) 2019 -- cgit