71 lines
1.6 KiB
Text
71 lines
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# 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,
|
|
|
|
@{bin}/{,ba,da}sh rix,
|
|
@{bin}/uname rix,
|
|
|
|
# When using SFTP protocol
|
|
@{bin}/fzsftp rPx,
|
|
|
|
@{bin}/lsb_release rPx -> lsb_release,
|
|
|
|
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,
|
|
|
|
/usr/share/filezilla/{,**} r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
# To remove the following error:
|
|
# GLib-GIO-WARNING **: Error creating IO channel for /proc/self/mountinfo: Permission denied
|
|
# (g-file-error-quark, 2)
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
/etc/fstab r,
|
|
|
|
# Creating new files on FTP
|
|
/tmp/ r,
|
|
owner /tmp/fz[0-9]temp-[0-9]*/ rw,
|
|
owner /tmp/fz[0-9]temp-[0-9]*/fz*-lockfile rwk,
|
|
owner /tmp/fz[0-9]temp-[0-9]*/empty_file_* rw,
|
|
|
|
# External apps
|
|
@{lib}/firefox/firefox rPUx,
|
|
|
|
# FTP share folder
|
|
owner @{MOUNTS}/ftp/ r,
|
|
owner @{MOUNTS}/ftp/** rw,
|
|
|
|
# Silencer
|
|
/ r,
|
|
/*/ r,
|
|
/*/*/ r,
|
|
|
|
# file_inherit
|
|
owner /dev/tty@{int} rw,
|
|
|
|
include if exists <local/filezilla>
|
|
}
|