2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-22 10:07:12 +00:00

profiles/apparmor.d: add ssh-keyscan profile

Signed-off-by: Evan Caville <evan.caville@canonical.com>
This commit is contained in:
Evan Caville 2025-03-27 16:19:54 +10:00
parent bd46a02e47
commit 260ef98a95

View File

@ -0,0 +1,33 @@
#------------------------------------------------------------------
# Copyright (C) 2025 Canonical Ltd.
#
# 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.
#------------------------------------------------------------------
# vim: ft=apparmor
#
abi <abi/4.0>,
include <tunables/global>
profile ssh-keyscan /usr/bin/ssh-keyscan {
include <abstractions/base>
include <abstractions/nameservice-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
# By default, limit file options to the following dirs
file r @{HOME}/.ssh/{,**},
# Allow executable mapping and read for the binary
file mr /usr/bin/ssh-keyscan,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/ssh-keyscan>
}