Package: apparmor / 2.13.4-3

debian/etc-writable.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From: Martin Pitt <martin.pitt@ubuntu.com>
Date: Mon, 29 Jan 2018 12:26:43 +0000
Subject: Allow reading time configuration from /etc/writable,
 as we have it on the phone.

Forwarded: No, that's an Ubuntu specific hack
Bug-Ubuntu: https://launchpad.net/bugs/1227520
---
 profiles/apparmor.d/abstractions/base                     | 1 +
 profiles/apparmor.d/abstractions/ubuntu-browsers.d/java   | 2 ++
 profiles/apparmor/profiles/extras/usr.lib.firefox.firefox | 1 +
 3 files changed, 4 insertions(+)

diff --git a/profiles/apparmor.d/abstractions/base b/profiles/apparmor.d/abstractions/base
index fabb427..1dc77a3 100644
--- a/profiles/apparmor.d/abstractions/base
+++ b/profiles/apparmor.d/abstractions/base
@@ -30,6 +30,7 @@
   /etc/locale/**                 r,
   /etc/locale.alias              r,
   /etc/localtime                 r,
+  /etc/writable/localtime        r,
   /usr/share/locale-bundle/**    r,
   /usr/share/locale-langpack/**  r,
   /usr/share/locale/**           r,
diff --git a/profiles/apparmor.d/abstractions/ubuntu-browsers.d/java b/profiles/apparmor.d/abstractions/ubuntu-browsers.d/java
index 8193a5c..e0a67cf 100644
--- a/profiles/apparmor.d/abstractions/ubuntu-browsers.d/java
+++ b/profiles/apparmor.d/abstractions/ubuntu-browsers.d/java
@@ -37,6 +37,7 @@
     /etc/lsb-release r,
     /etc/ssl/certs/java/* r,
     /etc/timezone r,
+    /etc/writable/timezone r,
 
     @{PROC}/@{pid}/ r,
     @{PROC}/@{pid}/fd/ r,
@@ -84,6 +85,7 @@
     /etc/lsb-release r,
     /etc/ssl/certs/java/* r,
     /etc/timezone r,
+    /etc/writable/timezone r,
 
     @{PROC}/@{pid}/ r,
     @{PROC}/@{pid}/fd/ r,
diff --git a/profiles/apparmor/profiles/extras/usr.lib.firefox.firefox b/profiles/apparmor/profiles/extras/usr.lib.firefox.firefox
index 8f3bf56..68bf1ea 100644
--- a/profiles/apparmor/profiles/extras/usr.lib.firefox.firefox
+++ b/profiles/apparmor/profiles/extras/usr.lib.firefox.firefox
@@ -38,6 +38,7 @@
   /tmp/.X[0-9]*-lock r,
 
   /etc/timezone r,
+  /etc/writable/timezone r,
   /etc/wildmidi/wildmidi.cfg r,
 
   # firefox specific