aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/freedesktop.org
blob: cb5e1ecfb8c5cc1471ba525f93298feeb27f3973 (plain) (blame)
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
# vim:syntax=apparmor
# ------------------------------------------------------------------
#
#    Copyright (C) 2009 Canonical Ltd.
#
#    This program is free software; you can redistribute it and/or
#    modify it under the terms of version 2 of the GNU General Public
#    License published by the Free Software Foundation.
#
# ------------------------------------------------------------------

  abi <abi/4.0>,

  # system configuration
  @{system_share_dirs}/applications/{**,} r,
  @{system_share_dirs}/*ubuntu/applications/{**,} r,
  @{system_share_dirs}/gnome/applications/{**,} r,
  @{system_share_dirs}/xfce4/applications/{**,} r,
  @{system_share_dirs}/icons/{**,}        r,
  @{system_share_dirs}/pixmaps/{**,}      r,

  # this should probably go elsewhere
  @{system_share_dirs}/mime/** r,

  @{system_share_dirs}/glib-2.0/schemas/gschemas.compiled r,

  /etc/gnome/defaults.list r,
  /etc/xfce4/defaults.list r,  

  # per-user configurations
  owner @{HOME}/.icons/{,**}            r,
  owner @{HOME}/.recently-used.xbel*    rw,
  owner @{HOME}/.local/share/recently-used.xbel* rw,
  owner @{HOME}/.config/user-dirs.dirs  r,
  owner @{HOME}/.config/mimeapps.list   r,
  owner @{user_share_dirs}/applications/{**,} r,
  owner @{user_share_dirs}/icons/{**,}        r,
  owner @{user_share_dirs}/mime/{**,}         r,

  # Include additions to the abstraction
  include if exists <abstractions/freedesktop.org.d>