feat(profiles): add transmission-gtk

This commit is contained in:
Alexandre Pujol 2023-08-27 14:59:02 +01:00
parent 4d79af2203
commit b0eed1ae39
Failed to generate hash of commit
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,59 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/transmission-gtk
profile transmission-gtk @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/dri-common>
include <abstractions/dri-enumerate>
include <abstractions/fonts>
include <abstractions/freedesktop.org>
include <abstractions/gtk>
include <abstractions/mesa>
include <abstractions/nameservice-strict>
include <abstractions/nvidia>
include <abstractions/openssl>
include <abstractions/ssl_certs>
include <abstractions/trash>
include <abstractions/user-download-strict>
include <abstractions/vulkan>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
/usr/share/X11/xkb/{,**} r,
owner @{user_torrents_dirs}/ r,
owner @{user_torrents_dirs}/** rw,
owner @{user_config_dirs}/transmission/ rw,
owner @{user_config_dirs}/transmission/** rwk,
owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/transmission/ rw,
owner @{user_cache_dirs}/transmission/** rwk,
owner @{user_share_dirs}/ r,
@{run}/mount/utab r,
@{PROC}/@{pid}/net/route r,
owner @{PROC}/@{pid}/comm r,
owner @{PROC}/@{pid}/mountinfo r,
owner @{PROC}/@{pid}/mounts r,
deny @{user_share_dirs}/gvfs-metadata/* r,
include if exists <local/transmission-gtk>
}

View file

@ -331,6 +331,7 @@ systemsettings complain
thunderbird complain thunderbird complain
thunderbird-glxtest complain thunderbird-glxtest complain
thunderbird-vaapitest complain thunderbird-vaapitest complain
transmission-gtk complain
udisksctl complain udisksctl complain
udisksd attach_disconnected,complain udisksd attach_disconnected,complain
umount complain umount complain