Skip to content

How to whitelist the current directory? #4090

Closed Answered by kmk3
tredondo asked this question in Q&A
Discussion options

You must be logged in to vote
$ pwd
/home/someotheruser
$ head file.txt  # works
$ /usr/bin/head file.txt  # works
$ firejail --whitelist=$(pwd) /usr/bin/head file.txt  # /usr/bin/head: cannot open 'file.txt'
$ firejail --whitelist=/home/someotheruser /usr/bin/head file.txt  # /usr/bin/head: cannot open 'file.txt'
~/apps/LosslessCut-linux$ firejail --private-cwd=~/apps/LosslessCut-linux/ ./losslesscut
Reading profile /etc/firejail/default.profile

The underlying problem here seems to be trying to use firejail with programs
that do not have a profile, which results in default.profile being used.

Programs are unlikely to work properly in firejail without a dedicated profile.

As for the original question (whitelisting…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@rusty-snake
Comment options

@tredondo
Comment options

Comment options

You must be logged in to vote
3 replies
@tredondo
Comment options

@glitsj16
Comment options

@rusty-snake
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kmk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
duplicate This issue or pull request already exists
4 participants