Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
fabdf938
Commit
fabdf938
authored
Jan 02, 2017
by
intrigeri
Browse files
Move AppArmor aliases to a dedicated file, and include it.
This will avoid maintaining these settings as a patch.
parent
6f81de7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/etc/apparmor.d/tunables/alias.d/tails
0 → 100644
View file @
fabdf938
alias / -> /lib/live/mount/overlay/,
alias / -> /lib/live/mount/rootfs/*.squashfs/,
config/chroot_local-patches/apparmor-alias-dot-d.diff
0 → 100644
View file @
fabdf938
--- a/etc/apparmor.d.orig/tunables/alias 2016-12-17 11:25:27.000000000 +0000
+++ b/etc/apparmor.d/tunables/alias 2017-01-02 20:47:35.987919057 +0000
@@ -14,3 +14,5 @@
#
# Or if mysql databases are stored in /home:
# alias /var/lib/mysql/ -> /home/mysql/,
+
+#include <tunables/alias.d>
config/chroot_local-patches/apparmor-aliases.diff
View file @
fabdf938
...
...
@@ -50,15 +50,3 @@ diff -Naur '--exclude=cache' /etc/apparmor.d.orig/abstractions/ubuntu-helpers /e
# Dangerous files
audit deny owner /**/* m, # compiled libraries
diff -Naur '--exclude=cache' /etc/apparmor.d.orig/tunables/alias /etc/apparmor.d/tunables/alias
--- a/etc/apparmor.d.orig/tunables/alias 2013-07-10 22:05:57.000000000 +0000
+++ b/etc/apparmor.d/tunables/alias 2015-06-03 18:12:46.426380000 +0000
@@ -14,3 +14,7 @@
#
# Or if mysql databases are stored in /home:
# alias /var/lib/mysql/ -> /home/mysql/,
+
+alias / -> /lib/live/mount/overlay/,
+alias / -> /lib/live/mount/rootfs/*.squashfs/,
+
wiki/src/contribute/design/application_isolation.mdwn
View file @
fabdf938
...
...
@@ -69,7 +69,10 @@ subsequent problems with overlapping rules, and to mitigate the
increased policy compilation time (see details below), we also patch
some some very broad rules to make them _not_ apply to `/lib/live/*`.
All these changes live in
[[!tails_gitweb config/chroot_local-patches/apparmor-aliases.diff]].
[[!tails_gitweb config/chroot_local-patches/apparmor-aliases.diff]],
[[!tails_gitweb config/chroot_local-patches/apparmor-alias-dot-d.diff]]
and
[[!tails_gitweb config/chroot_local-includes/etc/apparmor.d/tunables/alias.d/tails]].
Second, few more targeted adjustments are also applied:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment