-
Notifications
You must be signed in to change notification settings - Fork 577
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
corrections to the vlc profile #3469
Conversation
How did these rules get lost? As far as I can see these were never part of the VLC profile. This could be just a (confusing) wording thing, in which case you can dismiss this remark. |
whitelist ${HOME}/.config/vlc | ||
whitelist ${HOME}/.local/share/vlc | ||
whitelist ${MUSIC} | ||
whitelist ${VIDEOS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refactoring VLC as a whitelisting profile can indeed harden it significantly. Most if not all our other profiles of that kind include whitelist-common.inc
too (to cover potential UI breakage). Can you please test VLC's functionality with that included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have never used VLC and cannot adequately judge if this whitelist refactoring would break something on the user end. So let's wait for other collaborators to review this also.
I agree, I'm a tad concerned about the impact since we don't use whitelisting for our other players (i.e. totem or xplayer). However whitelisting might be more important for VLC - i.e. since it can connect to the internet for streaming and etc (not sure if totem can). |
Sorry, I had problems with VLC launched by Firefox, but it was due to VLC being launched inside the firefox profile. However, I though the problem was related to the lack of mkdir-whitelist sentences in the VLC profile. I was wrong. The solution to this problem is to add the required paths to file /etc/firejail/firefox-common-addons.local. After reading #1569 I think it senseless to include mkdir-whitelist rules in the VLC (or totem) profile because users might have multimedia files to reproduce in other directories. I think you can discard this merge request. Sorry for the mess :) |
@chrpinedo That happens, no problem. But you made us stop and think for a while on the broader issue of refactoring media player profiles in general. So not all has been in vain :) @Fred-Barclay Totem comes with apple-trailers and vimeo plugins on Arch Linux so I assume it does support streaming too. For what it's worth, I have been using mpv and mplayer with a hardened whitelisting profile in my .local files for a very long time without any issues whatsoever. So we might consider refactoring all of these media player profiles as such. The only downside I see with doing so is that users who want to play media files located outside of the supported XDG dirs would need to whitelist those paths. |
@glitsj16 very kind :) I also use Arch Linux with GNOME and I can confirm Totem streams. I use both, VLC and Totem, for HTTP/HTTPS streaming. |
@glitsj16 We probably should consider whitelisting... I would suggest ${DOCUMENTS}, ${DOWNLOADS}, ${MUSIC}, and ${VIDEOS}. I wonder if @chrpinedo would like to take the lead on this/open an PR? @chrpinedo thoughts? No pressure either way of course 😄 . If you would like to do this don't worry about it being perfect, we can easily discuss/fix in the PR. Let's close this one for now - thanks @chrpinedo !! |
@Fred-Barclay That should be easy, we just need to remove |
@Fred-Barclay thanks for the trust :-D However, I don't completely understand firejail profiles and I only dare make small changes to profiles ! I think such a change needs a more deeper view. |
No worries! I'll open a PR soon 😄 |
added the lost mkdir and whitelist rules.