[GH-ISSUE #567] Allow running even when global config file is missing #401

Closed
opened 2026-05-05 05:47:25 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @fasterthanlime on GitHub (Jun 11, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/567

I'd like https://github.com/itchio/itch to ship its own firejail binary, and the only thing preventing me from doing so right now seems to be that firejail refuses to start if /usr/local/etc/firejail/firejail.config doesn't exist.

It's probably easy to patch from my side, but if upstream supported it, that would be even better!

Originally created by @fasterthanlime on GitHub (Jun 11, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/567 I'd like https://github.com/itchio/itch to ship its own firejail binary, and the only thing preventing me from doing so right now seems to be that firejail refuses to start if /usr/local/etc/firejail/firejail.config doesn't exist. It's probably easy to patch from my side, but if upstream supported it, that would be even better!
Author
Owner

@fasterthanlime commented on GitHub (Jun 11, 2016):

The current behavior is:

fprintf(stderr, "Warning: Firejail configuration file %s not found\n", fname);
exit(1)

That's one hell of a warning!

<!-- gh-comment-id:225374598 --> @fasterthanlime commented on GitHub (Jun 11, 2016): The current behavior is: ``` fprintf(stderr, "Warning: Firejail configuration file %s not found\n", fname); exit(1) ``` That's one hell of a warning!
Author
Owner

@netblue30 commented on GitHub (Jun 12, 2016):

I added support to disable firejail.config enforcing at compile time. Configure the software as follows:

$ ./configure --disable-globalcfg

At runtime, if firejail.config is not present in the filesystem, firejail will use the defaults. Let me know if you need anything else.

<!-- gh-comment-id:225427524 --> @netblue30 commented on GitHub (Jun 12, 2016): I added support to disable firejail.config enforcing at compile time. Configure the software as follows: ``` $ ./configure --disable-globalcfg ``` At runtime, if firejail.config is not present in the filesystem, firejail will use the defaults. Let me know if you need anything else.
Author
Owner

@fasterthanlime commented on GitHub (Jun 12, 2016):

That's exactly what I was looking for, thanks a lot for the change!

<!-- gh-comment-id:225437816 --> @fasterthanlime commented on GitHub (Jun 12, 2016): That's exactly what I was looking for, thanks a lot for the change!
Author
Owner

@fasterthanlime commented on GitHub (Jun 13, 2016):

(Actually, having a tag that includes this commit would be great, if cutting a release isn't too much work for you!)

<!-- gh-comment-id:225522145 --> @fasterthanlime commented on GitHub (Jun 13, 2016): (Actually, having a tag that includes this commit would be great, if cutting a release isn't too much work for you!)
Author
Owner

@netblue30 commented on GitHub (Jun 13, 2016):

All set, use disable-globalcfg tag.

<!-- gh-comment-id:225571175 --> @netblue30 commented on GitHub (Jun 13, 2016): All set, use disable-globalcfg tag.
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#401
No description provided.