mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 23:05:11 +01:00
69 lines
No EOL
1.6 KiB
Text
69 lines
No EOL
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/flatpak-system-helper
|
|
profile flatpak-system-helper @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/p11-kit>
|
|
include <abstractions/ssl_certs>
|
|
|
|
capability chown,
|
|
capability dac_override,
|
|
capability fowner,
|
|
capability net_admin,
|
|
capability setgid,
|
|
capability setuid,
|
|
capability sys_nice,
|
|
capability sys_ptrace,
|
|
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/bwrap rPUx,
|
|
/{usr/,}bin/gpg{,2} rCx -> gpg,
|
|
/{usr/,}bin/gpgconf rCx -> gpg,
|
|
/{usr/,}bin/gpgsm rCx -> gpg,
|
|
/{usr/,}lib/revokefs-fuse rix,
|
|
|
|
/etc/flatpak/{,**} r,
|
|
|
|
/usr/share/mime/mime.cache r,
|
|
/usr/share/flatpak/triggers/ r,
|
|
|
|
/var/lib/flatpak/{,**} rwkl,
|
|
/var/tmp/flatpak-cache-*/{,**} rw,
|
|
|
|
owner /{var/,}tmp/#[0-9]* rw,
|
|
owner /{var/,}tmp/ostree-gpg-*/ rw,
|
|
owner /tmp/ostree-gpg-*/** rwkl -> /tmp/ostree-gpg-*/**,
|
|
|
|
@{PROC}/@{pid}/stat r,
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
profile gpg {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
/{usr/,}bin/gpg{,2} mr,
|
|
/{usr/,}bin/gpgconf mr,
|
|
/{usr/,}bin/gpgsm mr,
|
|
|
|
/{usr/,}bin/gpg-agent rix,
|
|
|
|
owner /tmp/ostree-gpg-*/ r,
|
|
owner /tmp/ostree-gpg-*/** rwkl -> /tmp/ostree-gpg-*/**,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
|
|
}
|
|
|
|
include if exists <local/flatpak-system-helper>
|
|
} |