Add vim modeline instructing the editor to use syntax plugin provided by apparmor. Continuation of #391 to keep the diff list relatively short.
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-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}/filezilla
|
|
profile filezilla @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/gtk>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/nameservice>
|
|
include <abstractions/user-download-strict>
|
|
|
|
signal (send) set=(term, kill) peer=fzsftp,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/uname rix,
|
|
|
|
@{bin}/fzsftp rPx, # When using SFTP protocol
|
|
@{bin}/lsb_release rPx -> lsb_release,
|
|
|
|
/usr/share/filezilla/{,**} r,
|
|
|
|
/etc/fstab r,
|
|
|
|
/ r,
|
|
/*/ r,
|
|
/*/*/ r,
|
|
|
|
# FTP share folder
|
|
owner @{MOUNTS}/ftp/ r,
|
|
owner @{MOUNTS}/ftp/** rw,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{user_config_dirs}/filezilla/ rw,
|
|
owner @{user_config_dirs}/filezilla/* rwk,
|
|
|
|
owner @{user_cache_dirs}/filezilla/ rw,
|
|
owner @{user_cache_dirs}/filezilla/default_*.png rw,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
/tmp/ r,
|
|
owner @{tmp}/fz[0-9]temp-@{int}/ rw,
|
|
owner @{tmp}/fz[0-9]temp-@{int}/fz*-lockfile rwk,
|
|
owner @{tmp}/fz[0-9]temp-@{int}/empty_file_* rw,
|
|
|
|
owner /dev/tty@{int} rw,
|
|
|
|
include if exists <local/filezilla>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|