This commit is contained in:
Roman Beslik 2022-02-22 20:13:19 +02:00
parent 0ee2e4f7ad
commit 833c475d34

View file

@ -0,0 +1,23 @@
# vim:syntax=apparmor
# Copyright 2022 by Roman Beslik <me@beroal.in.ua>
# SPDX-License-Identifier: GPL-3.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/ssh-keygen
profile ssh-keygen @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
include <abstractions/openssl>
include <abstractions/consoles> # for entering a passphrase for a key
@{exec_path} mr,
owner @{HOME}/@{XDG_SSH_DIR}/ w,
owner @{HOME}/@{XDG_SSH_DIR}/*_*{,.pub} rw,
include if exists <local/ssh-keygen>
}