feat(profile): add sshd-auth

This commit is contained in:
Alexandre Pujol 2025-05-01 20:39:38 +02:00
parent a98b8bbc0d
commit 97ddc0de63
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -0,0 +1,30 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{lib}/{openssh,ssh}/sshd-auth
profile sshd-auth @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability setgid,
capability setuid,
capability sys_chroot,
network inet dgram,
network inet stream,
network inet6 dgram,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
@{sbin}/sshd.hmac r,
include if exists <local/sshd-auth>
}
# vim:syntax=apparmor