Firejail: Allow running even when global config file is missing

Created on 11 Jun 2016  路  5Comments  路  Source: netblue30/firejail

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!

Most helpful comment

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.

All 5 comments

The current behavior is:

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

That's one hell of a warning!

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.

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

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

All set, use disable-globalcfg tag.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fincer picture Fincer  路  4Comments

ericschdt picture ericschdt  路  3Comments

yourcelf picture yourcelf  路  4Comments

nuxwin picture nuxwin  路  3Comments

bryce-lynch picture bryce-lynch  路  4Comments