mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
Add update-ca-trust
This commit is contained in:
parent
6bbe50573b
commit
d084023120
40
apparmor.d/profiles-m-z/update-ca-trust
Normal file
40
apparmor.d/profiles-m-z/update-ca-trust
Normal file
@ -0,0 +1,40 @@
|
||||
# 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/update-ca-trust
|
||||
profile update-ca-trust @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
capability dac_read_search,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/bash rix,
|
||||
/{usr/,}bin/find rix,
|
||||
/{usr/,}bin/ln rix,
|
||||
/{usr/,}bin/trust rix,
|
||||
|
||||
/ r,
|
||||
/usr/share/p11-kit/modules/{,*} r,
|
||||
|
||||
/etc/ca-certificates/extracted/{tls,email,objsign}-ca-bundle.pem{,.*} w,
|
||||
/etc/ca-certificates/extracted/ca-bundle.trust.crt{,.*} w,
|
||||
/etc/ca-certificates/extracted/cadir/{,*} rw,
|
||||
/etc/ca-certificates/extracted/edk2-cacerts.bin{,.*} w,
|
||||
/etc/ssl/certs/{,*} rw,
|
||||
/etc/ssl/certs/java/cacerts{,.*} w,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
# Silencer
|
||||
deny network inet6 stream,
|
||||
deny network inet stream,
|
||||
|
||||
include if exists <local/update-ca-trust>
|
||||
}
|
Loading…
Reference in New Issue
Block a user