# apparmor.d - Full set of apparmor profiles # Copyright (C) 2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}bin/ssh profile ssh @{exec_path} { include include include include network inet stream, network inet6 stream, @{exec_path} mr, owner @{PROC}/@{pid}/fd/ r, owner @{HOME}/.ssh/ r, owner @{HOME}/.ssh/config r, owner @{HOME}/.ssh/known_hosts r, owner @{HOME}/.ssh/*_rsa{,.pub} r, owner @{HOME}/.ssh/*_ed25519{,.pub} r, /etc/ssh/ssh_config r, /etc/ssh/ssh_config.d/ r, include if exists }