Add vim modeline instructing the editor to use the syntax plugin provided by apparmor. Continuation of #379, #380, #381, #390 to keep the diff list relatively short.
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023-2024 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/desktop>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/trash-strict>
|
|
include <abstractions/user-download-strict>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{open_path} rPx -> child-open,
|
|
|
|
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,
|
|
|
|
@{run}/mount/utab r,
|
|
|
|
@{PROC}/@{pid}/net/route r,
|
|
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
|
owner @{PROC}/@{pid}/cmdline 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>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|