Cannot access .local file when running sudo firejail from home directory #6604
Replies: 2 comments 2 replies
-
sudo -u sbx_user /usr/bin/firejail --debug /bin/evince.
Where is evince.local? What is the output of: ls -l /path/to/evince.local Can the user running firejail access the file? Also, the current error message is unfortunately unclear; please build/install |
Beta Was this translation helpful? Give feedback.
-
Possible duplicate of #3798 |
Beta Was this translation helpful? Give feedback.
-
Description
So for context, the owner of
/bin/evince
issbx_user
and it has 700 permissions.As a separate user, say
test_user
, run the following command in the command line:When I run this command anywhere but
/home/test_user
it works fine and the evince application comes up in a sandboxed environment. However when I run this command in my home directory, it gives the following error:Steps to Reproduce
/home/test_user
:Expected Behavior
What I am hoping will happen is that the evince application will come up in the sandboxed environment, even when running the command from the user's home directory (~). I can even run the command in ~/Documents, but not in ~. I have tried to whitelist {HOME} and had no luck.
Actual Behavior
The error above is printed. If I comment out evince.local it will move onto all of the disable and whitelist files and yell about the .local inside of them. I did comment out the inclusion of all .local files in each profile and this solved the issue, but i feel like that is a temporary solution. Are the .local files necessary to have a fully functioning sandbox environment? What could my profile be missing or need to not get the issue about the .local file not being accessed. From what I have read the .local files are stored in ~/.config/firejail, I have tried to whitelist this as well and that changed nothing.
Behavior without a profile
Without a profile the application can come up fine, just not sandboxed.
Environment
Additional context
sbx_user
owns the evince.profile in /etc/firejailThere are no "*.local" files in /etc/firejail
Below is my evince.profile:
evince.profile
Appreciate any input, I know this may be an odd situation with the separate user owning the application rather than root. I do have the problem fixed when commenting .local out of each profile but not sure if that is the proper way to do things, thanks.
Relates to:
Beta Was this translation helpful? Give feedback.
All reactions