Add ssh-keygen (#35)

This commit is contained in:
beroal 2022-03-06 16:05:37 +02:00 committed by GitHub
parent e437fe3a57
commit 8e34c5968b
Failed to generate hash of commit

View file

@ -0,0 +1,23 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Roman Beslik <me@beroal.in.ua>
# SPDX-License-Identifier: GPL-2.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>
}