47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{name} = super{p,P}roductivity Super?Productivity
|
|
@{domain} = org.chromium.Chromium
|
|
@{lib_dirs} = /opt/@{name}
|
|
@{config_dirs} = @{user_config_dirs}/@{name}
|
|
@{cache_dirs} = @{user_cache_dirs}/@{name}
|
|
|
|
@{exec_path} = @{bin}/@{name} @{lib_dirs}/@{name}
|
|
profile superproductivity @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/audio-client>
|
|
include <abstractions/bus-accessibility>
|
|
include <abstractions/bus-session>
|
|
include <abstractions/bus/com.canonical.dbusmenu>
|
|
include <abstractions/bus/org.a11y>
|
|
include <abstractions/bus/org.freedesktop.Notifications>
|
|
include <abstractions/bus/org.freedesktop.portal.Desktop>
|
|
include <abstractions/bus/org.gnome.Mutter.IdleMonitor>
|
|
include <abstractions/bus/org.gnome.SessionManager>
|
|
include <abstractions/bus/org.gtk.vfs.MountTracker>
|
|
include <abstractions/bus/org.kde.StatusNotifierItem>
|
|
include <abstractions/common/electron>
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mrix,
|
|
|
|
@{bin}/speech-dispatcher rPx,
|
|
@{open_path} rPx -> child-open-strict,
|
|
|
|
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
|
|
|
|
include if exists <local/superproductivity>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|