aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/plasmashell
blob: 43b47e88d6c5addf00f39de7ec32c219d6ec47a4 (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
42
43
44
45
46
47
abi <abi/4.0>,

include <tunables/global>

profile plasmashell /usr/bin/plasmashell flags=(complain) {
  include <abstractions/dbus-session>

  capability,
  userns,
  network,
  dbus,
  mount,
  umount,
  remount,
  signal,
  mqueue,
  unix,
  ptrace,

  # allow executing QtWebEngineProcess with full permissions including userns (using profile stacking to avoid no_new_privs issues)
  /usr/lib/x86_64-linux-gnu/qt[56]/libexec/QtWebEngineProcess cx -> &plasmashell//QtWebEngineProcess,
  /usr/libexec/qt[56]/QtWebEngineProcess                      cx -> &plasmashell//QtWebEngineProcess,

  # allow to execute all other programs under their own profile, or to run unconfined
  /** pux,

  /{,**} mrwlk,

  profile QtWebEngineProcess flags=(complain) {
    capability,
    userns,
    network,
    dbus,
    mount,
    umount,
    remount,
    signal,
    mqueue,
    unix,
    ptrace,
    /** pux,
    /{,**} mrwlk,
  }

  # Site-specific additions and overrides.  See local/README for details.
  include if exists <local/plasmashell>
}