mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 14:55:15 +01:00
73 lines
1.9 KiB
Text
73 lines
1.9 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/claws-mail
|
|
profile claws-mail @{exec_path} flags=(complain) {
|
|
include <abstractions/base>
|
|
include <abstractions/audio>
|
|
include <abstractions/enchant>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/fonts>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/gtk>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/thumbnails-cache-read>
|
|
include <abstractions/user-download-strict>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/which{,.debianutils} rix,
|
|
|
|
/{usr/,}bin/gpg{,2} rCx -> gpg,
|
|
/{usr/,}bin/gpgsm rCx -> gpg,
|
|
/{usr/,}bin/gpgconf rCx -> gpg,
|
|
|
|
/{usr/,}bin/orage rPUx,
|
|
/{usr/,}{s,}bin/exim4 rPUx,
|
|
/{usr/,}bin/geany rPUx,
|
|
|
|
/usr/share/publicsuffix/*.dafsa r,
|
|
/usr/share/sounds/freedesktop/stereo/*.oga r,
|
|
|
|
/etc/fstab r,
|
|
/etc/machine-id r,
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
owner /var/mail/* rwk,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/.claws-mail/ rw,
|
|
owner @{HOME}/.claws-mail/** rwl -> @{HOME}/.claws-mail/**,
|
|
owner @{HOME}/Mail/ rw,
|
|
owner @{HOME}/Mail/** rwl -> @{HOME}/Mail/**,
|
|
|
|
owner /tmp/claws-mail-[0-9]*/ rw,
|
|
owner /tmp/claws-mail-[0-9]*/@{hex} rw,
|
|
owner /tmp/claws-mail-[0-9]*/@{hex}.lock rwk,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
profile gpg {
|
|
include <abstractions/base>
|
|
|
|
/{usr/,}bin/gpg{,2} mr,
|
|
/{usr/,}bin/gpgsm mr,
|
|
/{usr/,}bin/gpgconf mr,
|
|
|
|
owner @{HOME}/@{XDG_GPG_DIR}/ rw,
|
|
owner @{HOME}/@{XDG_GPG_DIR}/** rwkl -> @{HOME}/@{XDG_GPG_DIR}/**,
|
|
|
|
}
|
|
|
|
include if exists <local/claws-mail>
|
|
}
|