[GH-ISSUE #4328] Seccomp list output goes to stdout instead of stderr #2620

Closed
opened 2026-05-05 09:17:03 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @slowpeek on GitHub (Jun 3, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4328

Bug and expected behavior

  • Some firejail output goes to stdout instead of stderr.

Reproduce
Steps to reproduce the behavior:

  1. Run and see
    firejail --seccomp=\!name_to_handle_at pwd 2>/dev/null
    Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown,
    Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown,
    /etc/firejail
    
    It is not an artificial example btw. The seccomp filter comes from keepassxc profile inherited by keepassxc-cli hence the above lines are prepended to keepassxc-cli exported xml. FIREJAIL_QUIET=yes does suppress the lines but those are definitely debug information, it should not pollute stdout by default.

Environment

  • ubuntu focal
  • 0.9.64.4

Additional context
Source reference:
c50dd74f61/src/lib/syscall.c (L1675-L1695)

Checklist

  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • I have performed a short search for similar issues (to avoid opening a duplicate).
  • If it is a AppImage, --profile=PROFILENAME is used to set the right profile.
  • Used LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM to get english error-messages.
  • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions.
Originally created by @slowpeek on GitHub (Jun 3, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4328 **Bug and expected behavior** - Some firejail output goes to stdout instead of stderr. **Reproduce** Steps to reproduce the behavior: 1. Run and see ``` firejail --seccomp=\!name_to_handle_at pwd 2>/dev/null Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown, Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown, /etc/firejail ``` It is not an artificial example btw. The seccomp filter comes from keepassxc profile inherited by keepassxc-cli hence the above lines are prepended to keepassxc-cli exported xml. `FIREJAIL_QUIET=yes` does suppress the lines but those are definitely debug information, it should not pollute stdout by default. **Environment** - ubuntu focal - 0.9.64.4 **Additional context** Source reference: https://github.com/netblue30/firejail/blob/c50dd74f615aaa9d0ebd6a1c459c5b3268ba1b9d/src/lib/syscall.c#L1675-L1695 **Checklist** - [x] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [x] If it is a AppImage, `--profile=PROFILENAME` is used to set the right profile. - [x] Used `LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM` to get english error-messages. - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions.
gitea-mirror 2026-05-05 09:17:03 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rusty-snake commented on GitHub (Jun 3, 2021):

  1. IMHO we should print these messages only with arg_debug. Normal users likely doesn't even know what all those seccomp is.
  2. For stdout vs. stderr we have #3749/#4275
<!-- gh-comment-id:853870599 --> @rusty-snake commented on GitHub (Jun 3, 2021): 1. IMHO we should print these messages only with `arg_debug`. Normal users likely doesn't even know what all those seccomp is. 2. For stdout vs. stderr we have #3749/#4275
Author
Owner

@netblue30 commented on GitHub (Jan 21, 2022):

I'm sending them to stderr for now, we'll have to rework it for #3749 and #4275.

<!-- gh-comment-id:1018665637 --> @netblue30 commented on GitHub (Jan 21, 2022): I'm sending them to stderr for now, we'll have to rework it for #3749 and #4275.
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#2620
No description provided.