apparmor.d/profiles/fzsftp

43 lines
903 B
Text
Raw Normal View History

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2018-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
2020-12-10 22:33:39 +01:00
abi <abi/3.0>,
2020-12-10 22:33:39 +01:00
include <tunables/global>
@{exec_path} = /{usr/,}bin/fzsftp
profile fzsftp @{exec_path} {
2020-12-10 22:33:39 +01:00
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice>
signal (receive) set=(term, kill) peer=filezilla,
# Needed?
deny ptrace (trace),
@{exec_path} mr,
2020-12-09 10:30:52 +01:00
/{usr/,}bin/{,ba,da}sh mrix,
/{usr/,}bin/ps rix,
/{usr/,}bin/ls rix,
@{PROC}/ r,
@{PROC}/uptime r,
@{PROC}/sys/kernel/osrelease r,
@{PROC}/sys/kernel/pid_max r,
@{PROC}/tty/drivers r,
deny @{PROC}/@{pids}/stat r,
deny @{PROC}/@{pids}/cmdline r,
/tmp/ r,
owner @{HOME}/.putty/randomseed rw,
# file_inherit
#deny @{HOME}/.cache/filezilla/** rw,
2020-12-10 22:33:39 +01:00
include if exists <local/fzsftp>
}