[GH-ISSUE #3857] [Question] Is it possible to modify the profile while firejail is running? #2425

Closed
opened 2026-05-05 09:05:59 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @Nathoufresh on GitHub (Dec 31, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3857

Sorry if this question has already been asked.

A neat feature would be: when an app requires a permission, firejail suspend the subprocess and then a dialog appears "appname wants to access this permission" then you could choose from allow this time, allow permanently, etc... But it would need firejail to be able to modify the profile while it's already running. Is it feasible?

Originally created by @Nathoufresh on GitHub (Dec 31, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3857 Sorry if this question has already been asked. A neat feature would be: when an app requires a permission, firejail suspend the subprocess and then a dialog appears "appname wants to access this permission" then you could choose from allow this time, allow permanently, etc... But it would need firejail to be able to modify the profile while it's already running. Is it feasible?
Author
Owner

@rusty-snake commented on GitHub (Dec 31, 2020):

But it would need firejail to be able to modify the profile while it's already running. Is it feasible?

For filesystem (e.g. whitelist) permissions yes, for others like nonoewprivs no.

<!-- gh-comment-id:752917831 --> @rusty-snake commented on GitHub (Dec 31, 2020): > But it would need firejail to be able to modify the profile while it's already running. Is it feasible? For filesystem (e.g. whitelist) permissions yes, for others like nonoewprivs no.
Author
Owner

@Nathoufresh commented on GitHub (Dec 31, 2020):

Tanks for your prompt answer!

For the permissions that cannot be changed on the go we could tell the user that we need to restart the app.
What would be the disadvantages/problems of such a GUI interface?

<!-- gh-comment-id:752920480 --> @Nathoufresh commented on GitHub (Dec 31, 2020): Tanks for your prompt answer! For the permissions that cannot be changed on the go we could tell the user that we need to restart the app. What would be the disadvantages/problems of such a GUI interface?
Author
Owner

@rusty-snake commented on GitHub (Jan 1, 2021):

What would be the disadvantages/problems of such a GUI interface?

  1. Not all systems has a GUI. However as long as there would be something like --static-permissions to disable such prompts everything is fine.
  2. Suspending a program is critical if this programs communicates with others.
  3. How can we detect that a program wants to access to a certain file?
<!-- gh-comment-id:753295802 --> @rusty-snake commented on GitHub (Jan 1, 2021): > What would be the disadvantages/problems of such a GUI interface? 1. Not all systems has a GUI. However as long as there would be something like `--static-permissions` to disable such prompts everything is fine. 2. Suspending a program is critical if this programs communicates with others. 3. How can we detect that a program wants to access to a certain file?
Author
Owner

@Nathoufresh commented on GitHub (Jan 2, 2021):

How can we detect that a program wants to access to a certain file?

I don't know how firejail works internally. I thought there would be an obvious way to get that information in firejail maybe I should create a new program from scratch.. Thanks for your time.

<!-- gh-comment-id:753471603 --> @Nathoufresh commented on GitHub (Jan 2, 2021): > How can we detect that a program wants to access to a certain file? I don't know how firejail works internally. I thought there would be an obvious way to get that information in firejail maybe I should create a new program from scratch.. Thanks for your time.
Author
Owner

@rusty-snake commented on GitHub (Mar 8, 2021):

I'm closing here due to inactivity, please fell free to request to reopen if you have more questions.

<!-- gh-comment-id:793002335 --> @rusty-snake commented on GitHub (Mar 8, 2021): I'm closing here due to inactivity, please fell free to request to reopen if you have more questions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2425
No description provided.