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

Add strawberry profile #3459

Merged
merged 10 commits into from
Jun 11, 2020
Merged

Add strawberry profile #3459

merged 10 commits into from
Jun 11, 2020

Conversation

aminvakil
Copy link
Contributor

Strawberry is a music player and music collection organizer. It is a fork of Clementine released in 2018 aimed at music collectors and audiophiles. It's written in C++ using the Qt 5 framework.

Website: https://www.strawberrymusicplayer.org/
Github: https://github.com/strawberrymusicplayer/strawberry

I just copied clementine profile, changed all clementine(s) to strawberry, I checked and everything's fine.

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.

Add it to src/firecfg/firecfg.config

We could do some future hardening.

etc/profile-m-z/strawberry.profile Show resolved Hide resolved
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.

Some hardening ideas, you need to try if they break something.

etc/profile-m-z/strawberry.profile Show resolved Hide resolved
etc/profile-m-z/strawberry.profile Outdated Show resolved Hide resolved
etc/profile-m-z/strawberry.profile Show resolved Hide resolved
etc/profile-m-z/strawberry.profile Show resolved Hide resolved
etc/profile-m-z/strawberry.profile Show resolved Hide resolved
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.

I'm fine with it, but leave it open for now so others have time to comment too.

Two things left:

  1. If you want, you can try whitelist-runuser-common.inc. Just copy it from here and remove the whitelist ${RUNUSER}/.mutter-Xwaylandauth.* line.
  2. What is strawberry-tagreader, would it make sense to add a redirect profile for it?

etc/profile-m-z/strawberry.profile Outdated Show resolved Hide resolved
@aminvakil
Copy link
Contributor Author

I see this error every few seconds, but fetching lyrics, getting tags, etc. works as expected, is this OK?

ERROR unknown                          Could not create AF_NETLINK socket (Operation not supported)

@rusty-snake
Copy link
Collaborator

strawberry is written in Qt, right?

is this OK?

If your 100% sure nothing is broken, IMHO yes.
If you are unsure, add protocol unix,inet,inet6,netlink.

@aminvakil
Copy link
Contributor Author

If you are unsure, add protocol unix,inet,inet6,netlink.

Adding netlink fixes the issue.

@aminvakil
Copy link
Contributor Author

2. What is `strawberry-tagreader`, would it make sense to add a redirect profile for it?

Taken from its man page:

This program is used internally by Strawberry to parse tags in music files without exposing the whole application to crashes caused by malformed files. It is not meant to be run on its own.

I would try adding a profile for it too, should I open a new PR for it later, or add it to current PR?

@rusty-snake
Copy link
Collaborator

. It is not meant to be run on its own.

Then we don't need one. The instances started by a firejailed strawberry run in its sandbox.

@aminvakil
Copy link
Contributor Author

. It is not meant to be run on its own.

Then we don't need one. The instances started by a firejailed strawberry run in its sandbox.

I meant this exactly, prevent running strawberry-tagreader on its own by firejail.

@rusty-snake
Copy link
Collaborator

I meant this exactly, prevent running strawberry-tagreader on its own by firejail.

You mean writing a profile that breaks strawberry-tagreader? I'm not for it.

@aminvakil
Copy link
Contributor Author

aminvakil commented Jun 9, 2020

I meant this exactly, prevent running strawberry-tagreader on its own by firejail.

You mean writing a profile that breaks strawberry-tagreader? I'm not for it.

Yes:)

But if you think it's unnecessary no then.

@rusty-snake rusty-snake merged commit 89d77cc into netblue30:master Jun 11, 2020
@rusty-snake
Copy link
Collaborator

Merged, Thanks.

@aminvakil
Copy link
Contributor Author

I don't know if I should have added strawberry to new profiles on README.MD or should I do it now or don't do it or anythine else?

@Fred-Barclay
Copy link
Collaborator

@aminvakil feel free to open an new PR with it added to README.md, and also to add it to the RELNOTES and add "added profile for strawberry" to https://github.com/netblue30/firejail/blob/master/README#L98 😄

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