Add pkcs11-register.

This commit is contained in:
Alexandre Pujol 2021-06-29 20:10:39 +01:00
parent 9cff5676c8
commit ca13b4be36
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,23 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/pkcs11-register
profile pkcs11-register @{exec_path} {
include <abstractions/base>
@{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 <local/pkcs11-register>
}