[GH-ISSUE #6458] Add a directive like "include" that will fail if profile cannot be found #3280

Closed
opened 2026-05-05 09:53:15 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @ghost on GitHub (Sep 1, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6458

Currently "include" will ignore when it cannot find a profile. I have a situation where I want to guarantee custom profiles have been created and if the included file was not created, then it will fail to launch.

Describe the solution you'd like

A new directive such as "require" that will include a profile if it exists and trigger an error if it does not exist.

Originally created by @ghost on GitHub (Sep 1, 2024). Original GitHub issue: https://github.com/netblue30/firejail/issues/6458 ### Is your feature request related to a problem? Please describe. Currently "include" will ignore when it cannot find a profile. I have a situation where I want to guarantee custom profiles have been created and if the included file was not created, then it will fail to launch. ### Describe the solution you'd like A new directive such as "require" that will include a profile if it exists and trigger an error if it does not exist.
gitea-mirror 2026-05-05 09:53:15 -06:00
Author
Owner

@rusty-snake commented on GitHub (Sep 1, 2024):

897f12dd88/src/firejail/profile.c (L1801-L1811)

Can you give details of your installation, firejail version etc.

<!-- gh-comment-id:2323473478 --> @rusty-snake commented on GitHub (Sep 1, 2024): https://github.com/netblue30/firejail/blob/897f12dd88c1add667ecb211b61b6126a49c7065/src/firejail/profile.c#L1801-L1811 Can you give details of your installation, firejail version etc.
Author
Owner

@ghost commented on GitHub (Sep 1, 2024):

Thanks, I was not aware that the suffix changed the behavior. When I use non .local suffixes the behavior works.

<!-- gh-comment-id:2323477703 --> @ghost commented on GitHub (Sep 1, 2024): Thanks, I was not aware that the suffix changed the behavior. When I use non .local suffixes the behavior works.
Author
Owner

@rusty-snake commented on GitHub (Sep 1, 2024):

It's one of the few (maybe the only one?) cases where the suffix is more than convention.

<!-- gh-comment-id:2323479386 --> @rusty-snake commented on GitHub (Sep 1, 2024): It's one of the few (maybe the only one?) cases where the suffix is more than convention.
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#3280
No description provided.