45 lines
1 KiB
Text
45 lines
1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{name} = Mullvad?VPN
|
|
@{domain} = org.chromium.Chromium
|
|
@{lib_dirs} = /opt/@{name}
|
|
@{config_dirs} = @{user_config_dirs}/@{name}
|
|
@{cache_dirs} = @{user_cache_dirs}/@{name}
|
|
|
|
@{exec_path} = @{lib_dirs}/mullvad-gui
|
|
profile mullvad-gui @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/common/electron>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mrix,
|
|
@{sh_path} rix,
|
|
|
|
@{bin}/gsettings rPx,
|
|
@{open_path} rPx -> child-open-browsers,
|
|
|
|
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
|
|
|
@{run}/mullvad-vpn rw,
|
|
|
|
/dev/tty rw,
|
|
|
|
deny @{user_share_dirs}/gvfs-metadata/* r,
|
|
deny /etc/machine-id r,
|
|
deny /var/lib/dbus/machine-id r,
|
|
|
|
include if exists <local/mullvad-gui>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|