68 lines
1.6 KiB
Text
68 lines
1.6 KiB
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2021 Mikhail Morfikov
|
|
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/4.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/hypnotix
|
|
@{exec_path} += @{lib}/hypnotix/hypnotix.py
|
|
profile hypnotix @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/audio-client>
|
|
include <abstractions/dconf-write>
|
|
include <abstractions/desktop>
|
|
include <abstractions/fontconfig-cache-read>
|
|
include <abstractions/graphics>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/python>
|
|
include <abstractions/ssl_certs>
|
|
include <abstractions/user-download-strict>
|
|
|
|
signal (send) set=(term, kill) peer=youtube-dl,
|
|
signal (send) set=(term, kill) peer=yt-dlp,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} rix,
|
|
@{bin}/python3.@{int} r,
|
|
|
|
@{sh_path} rix,
|
|
@{bin}/ldconfig rix,
|
|
@{bin}/mkdir rix,
|
|
|
|
@{bin}/xdg-screensaver rPx,
|
|
@{bin}/youtube-dl rPUx,
|
|
@{bin}/yt-dlp rPUx,
|
|
@{lib}/firefox/firefox rPx,
|
|
|
|
/usr/share/hypnotix/{,**} r,
|
|
|
|
/etc/machine-id r,
|
|
/etc/vdpau_wrapper.cfg r,
|
|
/var/lib/dbus/machine-id r,
|
|
|
|
owner @{HOME}/.hypnotix/ rw,
|
|
owner @{HOME}/.hypnotix/** rw,
|
|
|
|
owner @{user_music_dirs}/** r,
|
|
|
|
owner @{PROC}/@{pid}/fd/ r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
owner @{PROC}/@{pid}/cmdline r,
|
|
|
|
/dev/ r,
|
|
|
|
# Silencer
|
|
deny @{lib}/hypnotix/** w,
|
|
|
|
include if exists <local/hypnotix>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|