mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 18:55:15 +01:00
40b171ee94
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
96 lines
2.1 KiB
Text
96 lines
2.1 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/gpodder
|
|
profile gpodder @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/freedesktop.org>
|
|
include <abstractions/fonts>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/gtk>
|
|
include <abstractions/python>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/user-download-strict>
|
|
include <abstractions/openssl>
|
|
include <abstractions/ssl_certs>
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} r,
|
|
@{bin}/python3.@{int} r,
|
|
|
|
@{bin}/ r,
|
|
@{sh_path} rix,
|
|
@{bin}/uname rix,
|
|
|
|
owner @{HOME}/ r,
|
|
owner @{HOME}/gPodder/ rw,
|
|
owner @{HOME}/gPodder/** rwk,
|
|
|
|
/usr/share/gpodder/{,**} r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
owner @{PROC}/@{pid}/mountinfo r,
|
|
|
|
/etc/fstab r,
|
|
|
|
owner /var/tmp/etilqs_@{hex} rw,
|
|
|
|
/etc/mime.types r,
|
|
|
|
/usr/share/*/*.desktop r,
|
|
|
|
@{bin}/xdg-settings rPUx,
|
|
|
|
@{bin}/xdg-open rCx -> open,
|
|
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop rCx -> open,
|
|
|
|
# A/V players
|
|
@{bin}/smplayer rPUx,
|
|
@{bin}/vlc rPUx,
|
|
@{bin}/mpv rPUx,
|
|
|
|
# Open in a web browser
|
|
@{lib}/firefox/firefox rPUx,
|
|
|
|
# file_inherit
|
|
owner /dev/tty@{int} rw,
|
|
|
|
|
|
profile open {
|
|
include <abstractions/base>
|
|
include <abstractions/xdg-open>
|
|
|
|
@{bin}/xdg-open mr,
|
|
@{lib}/@{multiarch}/glib-[0-9]*/gio-launch-desktop mr,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/{m,g,}awk rix,
|
|
@{bin}/readlink rix,
|
|
@{bin}/basename rix,
|
|
|
|
owner @{HOME}/ r,
|
|
|
|
owner @{run}/user/@{uid}/ r,
|
|
|
|
# Allowed apps to open
|
|
@{lib}/firefox/firefox rPUx,
|
|
|
|
# file_inherit
|
|
owner @{HOME}/.xsession-errors w,
|
|
|
|
}
|
|
|
|
include if exists <local/gpodder>
|
|
}
|