[PR #6710] [MERGED] feature: add warn command #6133

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6710
Author: @kmk3
Created: 4/15/2025
Status: Merged
Merged: 4/21/2025
Merged by: @kmk3

Base: masterHead: add-warn-command


📝 Commits (1)

  • 517b86e feature: add warn command

📊 Changes

5 files changed (+16 additions, -1 deletions)

View changed files

📝 contrib/syntax/lists/profile_commands_arg1.list (+1 -0)
📝 etc/inc/disable-X11.inc (+1 -1)
📝 etc/templates/profile.template (+2 -0)
📝 src/firejail/profile.c (+5 -0)
📝 src/man/firejail-profile.5.in (+7 -0)

📄 Description

And use it in etc/inc/disable-X11.inc.

This allows printing a warning message from inside a profile.

Everything after the command is printed in a warning message as is (that
is, without macro expansion).

Example:

$ firejail --noprofile --include=/etc/firejail/disable-X11.inc true
Reading profile /etc/firejail/disable-X11.inc
Warning: /etc/firejail/disable-X11.inc:5: This file is deprecated; use disable-x11.inc (lowercase) instead.
Reading profile /etc/firejail/disable-x11.inc
[...]

Relates to #6294.

This is a follow-up to #6709.


🔄 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/6710 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 4/15/2025 **Status:** ✅ Merged **Merged:** 4/21/2025 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `add-warn-command` --- ### 📝 Commits (1) - [`517b86e`](https://github.com/netblue30/firejail/commit/517b86ea42e94ca599e22d1a2470b45575590032) feature: add warn command ### 📊 Changes **5 files changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `contrib/syntax/lists/profile_commands_arg1.list` (+1 -0) 📝 `etc/inc/disable-X11.inc` (+1 -1) 📝 `etc/templates/profile.template` (+2 -0) 📝 `src/firejail/profile.c` (+5 -0) 📝 `src/man/firejail-profile.5.in` (+7 -0) </details> ### 📄 Description And use it in etc/inc/disable-X11.inc. This allows printing a warning message from inside a profile. Everything after the command is printed in a warning message as is (that is, without macro expansion). Example: $ firejail --noprofile --include=/etc/firejail/disable-X11.inc true Reading profile /etc/firejail/disable-X11.inc Warning: /etc/firejail/disable-X11.inc:5: This file is deprecated; use disable-x11.inc (lowercase) instead. Reading profile /etc/firejail/disable-x11.inc [...] Relates to #6294. This is a follow-up to #6709. --- <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:51:23 -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#6133
No description provided.