initial
This commit is contained in:
parent
0ee2e4f7ad
commit
833c475d34
1 changed files with 23 additions and 0 deletions
23
apparmor.d/groups/ssh/ssh-keygen
Normal file
23
apparmor.d/groups/ssh/ssh-keygen
Normal 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>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue