Add profile for kdestroy

This commit is contained in:
doublez13 2025-08-11 10:27:57 -06:00 committed by Alex
parent 0f0082fd5b
commit 4f4f5c464e

View file

@ -0,0 +1,29 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 Zane Zakraisek <zakraise@eng.utah.edu>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/kdestroy
profile kdestroy @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
#Allow root to destroy other users' creds cache
capability dac_override,
#Config Files
/etc/krb5.conf r,
/etc/krb5.conf.d/{,**} r,
#Credentials cache
/tmp/krb5cc_* rwk,
/tmp/tkt* rwk,
include if exists <local/kdestroy>
}
# vim:syntax=apparmor