about summary refs log tree commit diff stats
path: root/core
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2019-06-17 15:28:45 +0100
committerSilvino <silvino@bk.ru>2019-06-17 15:28:45 +0100
commit3ec086df28374f6433c15c060ff608eb2cb19814 (patch)
treefb68712bff15aa2acc219c4f9caa49afabb21dce /core
parentf122dba2117121b6e844d5ea185b4d4646dae2b4 (diff)
downloaddoc-3ec086df28374f6433c15c060ff608eb2cb19814.tar.gz
added caching to core apparmor
Diffstat (limited to 'core')
-rw-r--r--core/apparmor.html18
-rw-r--r--core/conf/apparmor/parser.conf2
2 files changed, 20 insertions, 0 deletions
diff --git a/core/apparmor.html b/core/apparmor.html
index 8b7a30c..c567df8 100644
--- a/core/apparmor.html
+++ b/core/apparmor.html
@@ -165,6 +165,24 @@
         }
         </pre>
 
+        <h3>Seed up profile loading</h3>
+
+        <p>Every time apparmor loads a profile in text it needs
+        to compile into binary format, this takes some time if
+        there is many profiles to load at boot time. To optimize
+        edit /etc/apparmor/parser.conf;</p>
+
+        <pre>
+        ## Turn creating/updating of the cache on by default
+        write-cache
+        </pre>
+
+        <p>To change default location add;</p>
+
+        <pre>
+        chache-loc=/var/cache/apparmor
+        </pre>
+
         <a href="index.html">Core OS Index</a>
         <p>This is part of the Hive System Documentation.
         Copyright (C) 2019
diff --git a/core/conf/apparmor/parser.conf b/core/conf/apparmor/parser.conf
new file mode 100644
index 0000000..673d30a
--- /dev/null
+++ b/core/conf/apparmor/parser.conf
@@ -0,0 +1,2 @@
+## Turn creating/updating of the cache on by default
+write-cache