feat(profile): add mkcert.

This commit is contained in:
Alexandre Pujol 2024-09-18 23:18:31 +01:00
parent 305fceb413
commit ddd0388d7d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,43 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/mkcert
profile mkcert @{exec_path} {
include <abstractions/base>
include <abstractions/app/sudo>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
network netlink raw,
@{exec_path} mr,
@{bin}/certutil rix,
@{bin}/rm rix,
@{bin}/sudo rix,
@{bin}/tee rix,
@{bin}/trust rix,
@{bin}/update-ca-trust rPx,
owner @{HOME}/.mozilla/firefox/*/{cert9,key4}.db{,-journal} rwk,
owner @{HOME}/.pki/ rw,
owner @{HOME}/.pki/nssdb/ rw,
owner @{HOME}/.pki/nssdb/pkcs11.txt rw,
owner @{HOME}/.pki/nssdb/{cert9,key4}.db rwk,
owner @{HOME}/.pki/nssdb/{cert9,key4}.db-journal rw,
owner @{user_share_dirs}/mkcert/{,**} rw,
owner @{PROC}/@{pids}//cgroup r,
include if exists <local/mkcert>
}
# vim:syntax=apparmor