mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #2694] [MERGED] Propagate --quiet to children Firejail'ed processes #4487
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#4487
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/2694
Author: @laomaiweng
Created: 5/13/2019
Status: ✅ Merged
Merged: 5/17/2019
Merged by: @netblue30
Base:
master← Head:propagate-quiet📝 Commits (2)
f1207e7Propagate --quiet to children Firejail'ed processesce3ff97Move export of FIREJAIL_QUIET to env_defaults()📊 Changes
2 files changed (+7 additions, -1 deletions)
View changed files
📝
src/firejail/env.c(+5 -0)📝
src/firejail/main.c(+2 -1)📄 Description
Some Firejailed programs end up calling other programs for which a symlink to Firejail is also set up. When the child Firejailed process detects this, it prints on
stderra message along the lines of:This breaks the behavior of some programs, which actually capture the standard error of their child process and don't expect to see Firejail output there. Examples include:
gitaliasesfugitive://URLs built to view e.g. a commit from a blame windowUsing
--quiet(orquietin the profile) for either the parent Firejailed process or its child does not fix the issue:--quietis not propagated from a parent Firejailed process to its children, nor is any profile taken into account when Firejail detects it is running inside another Firejail process and prints the above warning.This PR attempts to remedy this by having Firejail export the environment variable
FIREJAIL_QUIET(when running with--quietorquietin the profile), so that any children Firejailed process takes notice and becomes quiet too.Please feel free to discuss alternative solutions to this issue! :)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.