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

Is there a command to activate single profile or selected profiles ?? #1675

Closed
Nokia808 opened this issue Dec 12, 2017 · 5 comments
Closed
Labels
duplicate This issue or pull request already exists enhancement New feature request firecfg Anything related to firecfg and not firejail itself question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested

Comments

@Nokia808
Copy link

Hi. I'm a Fedora user currently I use following guide that created by me after nearly 1 year from investigations:

https://forums.fedoraforum.org/showthread.php?313858-Risk-Free-WineHQ-Installation-amp-Usage

(my user name in Fedora forum is User808).

Recently I'm started to interested in Firejail sandboxing program & I like to use it for sandbox of ALL wine applications: ANY windows program installed on WineHQ will run sand boxed by Firejail ......

I search how to do this but I can not find answer ! I found the following command:

sudo firecfg

but it will lead to activated ALL profiles supported by Firejail NOT ONLY WineHQ profile.

Please I like to activate only WineHQ profile so that any Windows application already installed (or will be installed) will be run sand boxed by Firejail by default. How can I do this ?? Is there a specific command for that like:

sudo firecfg wine

Is there such a command or like command ??

@SkewedZeppelin
Copy link
Collaborator

sudo firecfg --clean && sudo ln -s /usr/bin/firejail /usr/local/bin/wine will only leave wine enabled

but what is the downside of having all the others sandboxed?

@Nokia808
Copy link
Author

@SpotComms

Thank you very much your kind & rapid response !

I would like to suggest for developer of Firejail to simplify this command (creating abbreviation to it) like:
sudo firecfg foo
where foo is name of program (supported program by official profile).

Regarding your question: "but what is the downside of having all the others sandboxed?"
sand boxing meaning limitation in functionality - please correct to me if I'm wrong - like firefox downloads will be deleted just after close firefox if firefox run sandboxed, isn't it ? So, I do not like to run firefox every time by default sand boxed & to me it is enough to use "firejail firefox", but WineHQ is mandatory to me (never allow it to run out of firejail sand box). If I run "sudo firecfg" then GIMP will never be able (by default) to edit any image because it is sand boxed then any image edition will disappear just by exit GIMP.

I have following questions:

  1. if I sand box WineHQ by firejail using command you gave to me, then do Irfanview (image program with edit power) & PDF-XChange editor (2 Windows program I like to use on Linux) will still be able to edit images & PDF while WineHQ is sand boxed ?? Does edit will disappear after closing Windows program ??
    I mean: I have PDF stored on my laptop in "Documents" folder within my home directory, then can PDF-XChange editor used to edit this PDF while Wine is sandboxed by firejail ?

  2. does firetools GUI has option from GUI to activate individual profiles ?

Best.

@SkewedZeppelin
Copy link
Collaborator

The default profiles are created with usability in mind. Firefox is allowed persistent access to its config and ~/Downloads; Gimp is allowed persistent access to basically everywhere. The only time Firejail will delete afterwards is when explicitly running with --private.

For your questions...

  1. No. Wine has permission to access Documents, it will not be deleted on close
  2. Yes, in a way. It will allow you to run programs sandboxed without enabling them system wide, however it does not always show every program Firejail supports.

@SkewedZeppelin SkewedZeppelin added enhancement New feature request question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested labels Dec 13, 2017
@Vincent43
Copy link
Collaborator

but what is the downside of having all the others sandboxed?

The downside is you may not want some apps sandboxed. Especially things like wget, less, kate, dolphin which are commonly used for daily system administration. Currently I have to clean them manually after I run firecfg.

Option for enabling single items and/or blacklisting some apps for firecfg usage would be nice.

@chiraag-nataraj
Copy link
Collaborator

Moving this to #2097.

@kmk3 kmk3 added duplicate This issue or pull request already exists firecfg Anything related to firecfg and not firejail itself labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature request firecfg Anything related to firecfg and not firejail itself question_old (Deprecated; use "needinfo" or "question" instead) Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants