apparmor.d -> profiles
This commit is contained in:
parent
c408a878b7
commit
e9b8e62fcd
726 changed files with 0 additions and 0 deletions
49
profiles/fzsftp
Normal file
49
profiles/fzsftp
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
# vim:syntax=apparmor
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
# License published by the Free Software Foundation.
|
||||
#
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/fzsftp
|
||||
profile fzsftp @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/consoles>
|
||||
include <abstractions/nameservice>
|
||||
|
||||
signal (receive) set=(term, kill) peer=filezilla,
|
||||
|
||||
# Needed?
|
||||
deny ptrace (trace),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{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,
|
||||
|
||||
include if exists <local/fzsftp>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue