feat(profile): merge transmission gui profiles.

Fix conflicting file naming with upstream.

fix #429
This commit is contained in:
Alexandre Pujol 2024-07-27 15:15:26 +02:00
parent a8509af857
commit 28d5ea034e
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
4 changed files with 7 additions and 60 deletions

View File

@ -6,8 +6,8 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/transmission-gtk
profile transmission-gtk @{exec_path} {
@{exec_path} = @{bin}/transmission-{gtk,qt}
profile transmission @{exec_path} {
include <abstractions/base>
include <abstractions/dconf-write>
include <abstractions/desktop>
@ -33,10 +33,11 @@ profile transmission-gtk @{exec_path} {
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 @{tmp}/tr_session_id_* rwk,
@{run}/mount/utab r,
@{PROC}/@{pid}/net/route r,
@ -48,7 +49,7 @@ profile transmission-gtk @{exec_path} {
deny @{user_share_dirs}/gvfs-metadata/* r,
include if exists <local/transmission-gtk>
include if exists <local/transmission>
}
# vim:syntax=apparmor

View File

@ -1,56 +0,0 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Mikhail Morfikov
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/transmission-qt
profile transmission-qt @{exec_path} {
include <abstractions/base>
include <abstractions/desktop>
include <abstractions/fontconfig-cache-read>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
include <abstractions/private-files-strict>
include <abstractions/qt5>
include <abstractions/qt5-settings-write>
include <abstractions/ssl_certs>
include <abstractions/user-download-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink dgram,
network netlink raw,
@{exec_path} mr,
# Torrent files
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 @{tmp}/tr_session_id_* rwk,
deny owner @{PROC}/@{pid}/cmdline r,
owner @{PROC}/@{pid}/mountinfo r,
owner @{PROC}/@{pid}/mounts r,
@{PROC}/@{pid}/net/route r,
@{PROC}/sys/kernel/random/uuid r,
/usr/share/hwdata/pnp.ids r,
include if exists <local/transmission-qt>
}
# vim:syntax=apparmor

View File

@ -368,6 +368,7 @@ systemd-userwork attach_disconnected,complain
systemsettings complain
totem attach_disconnected,complain
tracker-writeback complain
transmission complain
udev-dmi-memory-id complain
udisksctl complain
udisksd attach_disconnected,complain

View File

@ -19,5 +19,6 @@ plasmashell
slirp4netns
systemd-coredump
thunderbird
transmission
unix-chkpwd
virtiofsd