Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 769731 - sys-apps/firejail test failures
Summary: sys-apps/firejail test failures
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hank Leininger
Depends on: 694966
  Show dependency tree
Reported: 2021-02-09 10:50 UTC by Hank Leininger
Modified: 2021-11-06 21:14 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Hank Leininger 2021-02-09 10:50:43 UTC
There are several issues with firejail's tests:

- the firejail executable gets installed setuid so that it can build sandboxes, but...
- that means 'make test' doesn't work in a compiled-but-not-installed directory tree, so...
- 'make test' must look for an already-installed copy of firejail, which mostly works, except...
- this interferes with portage's sandboxing, which uses LD_PRELOAD, which is ignored for setuids;
- besides, recent firejail versions limit environment variable size and count, which portage regularly exceeds (from python_targets_* explosion, etc.), so various tests currently fail no matter what.

The environment stuff needs to be addressed regardless.

I'm not sure what to do about "needs its setuid bit to run tests, but that doesn't play nice with portage". I could not find examples of other packages' setuid binaries getting tests that require +s in a strenuous 5 minutes of grepping.

Some references:
Comment 1 Larry the Git Cow gentoo-dev 2021-02-18 00:59:05 UTC
The bug has been referenced in the following commit(s):

commit cedb5a6d8fd6a0954fe1a412bccbd39bf6aedfe9
Author:     Sam James <>
AuthorDate: 2021-02-18 00:58:54 +0000
Commit:     Sam James <>
CommitDate: 2021-02-18 00:58:54 +0000

    sys-apps/firejail: RESTRICT tests which fail in sandbox
    See bug and referenced GitHub PR for details.
    Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
    Signed-off-by: Sam James <>

 sys-apps/firejail/firejail- | 4 +++-
 sys-apps/firejail/firejail-9999.ebuild     | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)