summaryrefslogtreecommitdiff
path: root/debian/patches/ubuntu/ubuntu-apparmor-profile.patch
blob: 61c9af157f79ef321ed85240ff73fe4f88112fdd (plain)
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
Description: Update the apparmor-profile
  - move Ux to Cx -> third_party and provide a third_party child profile. In
    this manner, we can add some modest confinement (can't change MAC
    policy, change_profile or mount) but more importantly it allows us to
    specify peer=third_party to restrict where the strictly confined cups
    process can send signals
  - allow r of /var/cache/samba/*.tdb
  - allow r of /var/{cache,lib}/samba/printing/printers.tdb
Author: Jamie Strandboge <jamie@ubuntu.com>
Last-Update: 2014-10-01
--- a/debian/local/apparmor-profile
+++ b/debian/local/apparmor-profile
@@ -141,6 +141,7 @@
   # silence noise
   deny /etc/udev/udev.conf r,
 
+  signal (receive, send) peer=third_party,
   profile third_party {
     # third party backends, filters, and drivers get relatively no restrictions
     # as they often need high privileges, are unpredictable or otherwise beyond
@@ -149,6 +150,10 @@
     capability,
     audit deny capability mac_admin,
     network,
+    dbus,
+    signal,
+    ptrace,
+    unix,
   }
 
   # Site-specific additions and overrides. See local/README for details.