[PR #5876] [MERGED] feature: firecfg: add firecfg.d & add ignore command #5705

Closed
opened 2026-05-05 10:43:22 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/5876
Author: @kmk3
Created: 7/1/2023
Status: Merged
Merged: 12/4/2023
Merged by: @netblue30

Base: masterHead: firecfg-add-confdir-ignore


📝 Commits (4)

  • ff1ba4d firecfg: fix missing free and formatting
  • 62162e3 firecfg: turn constant strings into constants
  • 2993298 firecfg: parse config files in /etc/firejail/firecfg.d
  • ef6cfb8 firecfg: add ignore command and docs

📊 Changes

4 files changed (+160 additions, -53 deletions)

View changed files

📝 Makefile (+1 -0)
📝 src/firecfg/firecfg.h (+10 -0)
📝 src/firecfg/main.c (+96 -49)
📝 src/man/firecfg.1.in (+53 -4)

📄 Description

Main changes:

  • firecfg: parse config files in /etc/firejail/firecfg.d

/etc/firejail/firecfg.d/*.conf files are parsed before
/etc/firejail/firecfg.config, so the former can ignore/override any item in the
latter.

  • Add ignore command (!PROGRAM)

It prevents firecfg from creating a symlink for the given program.

Also, document the paths used and the config file syntax.

Suggested by @WhyNotHugo:

Closes #2097.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/5876 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 7/1/2023 **Status:** ✅ Merged **Merged:** 12/4/2023 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `firecfg-add-confdir-ignore` --- ### 📝 Commits (4) - [`ff1ba4d`](https://github.com/netblue30/firejail/commit/ff1ba4d4b666386dece4728e62d78bff55eb983a) firecfg: fix missing free and formatting - [`62162e3`](https://github.com/netblue30/firejail/commit/62162e3a49cd8db335733664d07ffd747a065928) firecfg: turn constant strings into constants - [`2993298`](https://github.com/netblue30/firejail/commit/2993298aaa7b6e70dd1bfc1b698db77390f397fd) firecfg: parse config files in /etc/firejail/firecfg.d - [`ef6cfb8`](https://github.com/netblue30/firejail/commit/ef6cfb8a22b6b788298a0601e837856b51c60e76) firecfg: add ignore command and docs ### 📊 Changes **4 files changed** (+160 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+1 -0) 📝 `src/firecfg/firecfg.h` (+10 -0) 📝 `src/firecfg/main.c` (+96 -49) 📝 `src/man/firecfg.1.in` (+53 -4) </details> ### 📄 Description Main changes: * firecfg: parse config files in /etc/firejail/firecfg.d `/etc/firejail/firecfg.d/*.conf` files are parsed before /etc/firejail/firecfg.config, so the former can ignore/override any item in the latter. * Add ignore command (`!PROGRAM`) It prevents firecfg from creating a symlink for the given program. Also, document the paths used and the config file syntax. Suggested by @WhyNotHugo: * <https://github.com/netblue30/firejail/issues/2097#issuecomment-1179160459> Closes #2097. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:43:22 -06:00
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#5705
No description provided.