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

yt-dlp: add missing paths & mpv.profile: whitelist paths for yt-dlp #4755

Merged
merged 4 commits into from
Dec 28, 2021

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Dec 9, 2021

This amends commit d6ca41c ("update mpv.profile", 2021-10-24) /
PR netblue30#4634.

These paths were taken from yt-dlp(1).  They are used since yt-dlp
commit e2e43aea2 ("Portable Configuration file (closes #19)",
2021-01-16)[1].

Environment: yt-dlp 2021.12.01-1 on Artix Linux.

Relates to: yt-dlp/yt-dlp#19

[1] yt-dlp/yt-dlp@e2e43ae
If it does not already exist, mpv is unlikely to need or to create it,
so just whitelist it if it exists.

This amends commit 5d74179 ("Use whitelisting for video players
(netblue30#3472)", 2020-08-15).
See etc/profile-m-z/yt-dlp.profile.

Relates to commit d6ca41c ("update mpv.profile", 2021-10-24) /
PR netblue30#4634.

Fixes netblue30#4754.
Copy link
Collaborator

@rusty-snake rusty-snake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably there are some more:

$ grep -l 'noblacklist ${HOME}/.config/youtube-dl' /etc/firejail/*.profile
/etc/firejail/celluloid.profile
/etc/firejail/firefox-common-addons.profile
/etc/firejail/mpsyt.profile
/etc/firejail/mpv.profile
/etc/firejail/smplayer.profile
/etc/firejail/youtube-dl-gui.profile
/etc/firejail/youtube-dl.profile

Copy link
Collaborator

@glitsj16 glitsj16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kmk3
Copy link
Collaborator Author

kmk3 commented Dec 9, 2021

@rusty-snake on Dec 9:

Probably there are some more:

$ grep -l 'noblacklist ${HOME}/.config/youtube-dl' /etc/firejail/*.profile
/etc/firejail/celluloid.profile
/etc/firejail/firefox-common-addons.profile
/etc/firejail/mpsyt.profile
/etc/firejail/mpv.profile
/etc/firejail/smplayer.profile
/etc/firejail/youtube-dl-gui.profile
/etc/firejail/youtube-dl.profile

Indeed; I'll change those on a new PR.

By the way, does any of those programs create/modify youtube-dl/yt-dlp config?

I think maybe only youtube-dl-gui would do so.

If we can be reasonably sure that they don't, more mkdirs could be removed
and the config paths could be marked read-only.

@netblue30 netblue30 merged commit 106440f into netblue30:master Dec 28, 2021
@netblue30
Copy link
Owner

merged, thanks!

@kmk3 kmk3 deleted the mpv-add-yt-dlp branch December 28, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for youtube-dl forks in e.g mpv
4 participants