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

corrections to the vlc profile #3469

Closed
wants to merge 1 commit into from
Closed

corrections to the vlc profile #3469

wants to merge 1 commit into from

Conversation

chrpinedo
Copy link
Contributor

added the lost mkdir and whitelist rules.

@glitsj16
Copy link
Collaborator

added the lost mkdir and whitelist rules.

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}
Copy link
Collaborator

@glitsj16 glitsj16 Jun 17, 2020

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?

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.

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.

@Fred-Barclay
Copy link
Collaborator

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).

@chrpinedo
Copy link
Contributor Author

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 :)

@glitsj16
Copy link
Collaborator

glitsj16 commented Jun 17, 2020

@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.

@chrpinedo
Copy link
Contributor Author

@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.

@Fred-Barclay
Copy link
Collaborator

@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 !!

@glitsj16
Copy link
Collaborator

We probably should consider whitelisting... I would suggest ${DOCUMENTS}, ${DOWNLOADS}, ${MUSIC}, and ${VIDEOS}.

@Fred-Barclay That should be easy, we just need to remove include disable-xdg.inc in that case.

@chrpinedo
Copy link
Contributor Author

@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.

@Fred-Barclay
Copy link
Collaborator

No worries! I'll open a PR soon 😄

Fred-Barclay added a commit that referenced this pull request Aug 15, 2020
* Use whitelisting for video players

See #3469

* Update media player whitelists

See reviews at #3472

Block $DOCUMENTS

Make $DESKTOP read-only

* Review fixes: include read-only Desktop in whitelist
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.

3 participants