feat(profile): add superproductivity.

This commit is contained in:
Alexandre Pujol 2024-09-12 22:29:59 +01:00
parent 7e63564c56
commit ecf4eaee14
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{name} = super{p,P}roductivity
@{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-session>
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,
@{run}/systemd/inhibit/@{int}.ref rw,
include if exists <local/superproductivity>
}
# vim:syntax=apparmor

View File

@ -331,6 +331,7 @@ steam-runtime attach_disconnected,complain
steamerrorreporter attach_disconnected,complain
strawberry attach_disconnected,mediate_deleted,complain
sulogin complain
superproductivity attach_disconnected,complain
switcherooctl complain
swtpm complain
swtpm_ioctl complain