Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New profile: pyradio #6589

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ blacklist ${HOME}/.cache/pipe-viewer
blacklist ${HOME}/.cache/plasmashell
blacklist ${HOME}/.cache/plasmashellbookmarkrunnerfirefoxdbfile.sqlite*
blacklist ${HOME}/.cache/psi
blacklist ${HOME}/.cache/pyradio
blacklist ${HOME}/.cache/qBittorrent
blacklist ${HOME}/.cache/quodlibet
blacklist ${HOME}/.cache/qupzilla
Expand Down Expand Up @@ -627,6 +628,7 @@ blacklist ${HOME}/.config/pragha
blacklist ${HOME}/.config/profanity
blacklist ${HOME}/.config/psi
blacklist ${HOME}/.config/psi+
blacklist ${HOME}/.config/pyradio
blacklist ${HOME}/.config/qBittorrent
blacklist ${HOME}/.config/qBittorrentrc
blacklist ${HOME}/.config/qnapi.ini
Expand Down Expand Up @@ -1054,6 +1056,7 @@ blacklist ${HOME}/.local/share/pnpm
blacklist ${HOME}/.local/share/profanity
blacklist ${HOME}/.local/share/psi
blacklist ${HOME}/.local/share/psi+
blacklist ${HOME}/.local/share/pyradio
blacklist ${HOME}/.local/share/qBittorrent
blacklist ${HOME}/.local/share/qpdfview
blacklist ${HOME}/.local/share/quadrapassel
Expand Down Expand Up @@ -1097,6 +1100,7 @@ blacklist ${HOME}/.local/state/ani-cli
blacklist ${HOME}/.local/state/audacity
blacklist ${HOME}/.local/state/mpv
blacklist ${HOME}/.local/state/pipewire
blacklist ${HOME}/.local/state/pyradio
blacklist ${HOME}/.lv2
blacklist ${HOME}/.lyx
blacklist ${HOME}/.magicor
Expand Down Expand Up @@ -1260,6 +1264,7 @@ blacklist ${HOME}/hyperrogue.ini
blacklist ${HOME}/i2p
blacklist ${HOME}/mps
blacklist ${HOME}/openstego.ini
blacklist ${HOME}/pyradio-recordings
blacklist ${HOME}/wallet.dat
blacklist ${HOME}/yt-dlp.conf
blacklist ${HOME}/yt-dlp.conf.txt
Expand Down
103 changes: 103 additions & 0 deletions etc/profile-m-z/pyradio.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Firejail profile for pyradio
# Description: Curses based internet radio player
# This file is overwritten after every install/update
quiet
# Persistent local customizations
include pyradio.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.cache/vlc
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/vlc
noblacklist ${HOME}/.local/share/vlc
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mplayer

noblacklist ${HOME}/.cache/pyradio
noblacklist ${HOME}/.config/pyradio
noblacklist ${HOME}/.local/share/pyradio
noblacklist ${HOME}/.local/state/pyradio
noblacklist ${HOME}/pyradio-recordings

# Lua is required by mpv.
# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

# Allow python (blacklisted by disable-interpreters.inc)
include allow-python3.inc

blacklist ${RUNUSER}/wayland-*
blacklist /usr/libexec

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
include disable-shell.inc
include disable-X11.inc
include disable-xdg.inc

whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.cache/vlc
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.config/vlc
whitelist ${HOME}/.local/share/vlc
whitelist ${HOME}/.local/state/mpv
whitelist ${HOME}/.mplayer
whitelist ${HOME}/.netrc
whitelist /usr/share/lua*
whitelist /usr/share/mpv
whitelist /usr/share/vlc

mkdir ${HOME}/.cache/pyradio
mkdir ${HOME}/.config/pyradio
mkdir ${HOME}/.local/share/pyradio
mkdir ${HOME}/.local/state/pyradio
mkdir ${HOME}/pyradio-recordings
whitelist ${HOME}/.cache/pyradio
whitelist ${HOME}/.config/pyradio
whitelist ${HOME}/.local/share/pyradio
whitelist ${HOME}/.local/state/pyradio
whitelist ${HOME}/pyradio-recordings
include whitelist-common.inc
include whitelist-run-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
ipc-namespace
netfilter
no3d
nodvd
nogroups
noinput
nonewprivs
noprinters
noroot
notpm
notv
nou2f
novideo
protocol unix,inet,inet6,netlink
seccomp
seccomp.block-secondary

disable-mnt
private-dev
# python-exec is required by any python executable on Gentoo Linux
private-etc @sound,@tls-ca,mplayer,mpv,python-exec,terminfo
private-tmp
writable-run-user

dbus-user none
dbus-system none

deterministic-shutdown
#memory-deny-write-execute # crashes lua
restrict-namespaces