mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): merge transmission gui profiles.
Fix conflicting file naming with upstream. fix #429
This commit is contained in:
parent
a8509af857
commit
28d5ea034e
@ -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
|
@ -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
|
@ -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
|
||||
|
@ -19,5 +19,6 @@ plasmashell
|
||||
slirp4netns
|
||||
systemd-coredump
|
||||
thunderbird
|
||||
transmission
|
||||
unix-chkpwd
|
||||
virtiofsd
|
||||
|
Loading…
Reference in New Issue
Block a user