diff --git a/apparmor.d/profiles-m-z/pkcs11-register b/apparmor.d/profiles-m-z/pkcs11-register new file mode 100644 index 00000000..8d70f557 --- /dev/null +++ b/apparmor.d/profiles-m-z/pkcs11-register @@ -0,0 +1,23 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2021 Alexandre Pujol +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = /{usr/,}bin/pkcs11-register +profile pkcs11-register @{exec_path} { + include + + @{exec_path} mr, + + /etc/opensc.conf r, + + owner @{HOME}/.pki/nssdb/pkcs11.txt r, + owner @{HOME}/.mozilla/firefox/profiles.ini r, + owner @{HOME}/.mozilla/firefox/*/pkcs11.txt r, + owner @{HOME}/.thunderbird/profiles.ini r, + + include if exists +} \ No newline at end of file