Skip to content

Firejail is my new favorite tool!

I don't know if I am just late to the party but if you ever want to do anything where security could be a bit dicey: visiting naughty websites; using windows apps with wine; emulating ROMS in retroarch/emulator of your choice firejail is a really quick easy way to increase security.

to amp up security you need apparmor and some kernel params- but you get a security boost right out of the box

to open up an incognito in your favorite browser with a tmp home directory:

firejail --private firefox --private-window
9 points14 comments
Open on Reddit
About this post
Posted
Archived
Score
9 · 92% up
Kind
Text
ID
gsdirp

Author

10
posts
77
comments
1
media
View profile

18 comments

That's also a good solution mitigation to the Zoom spyware some of us have to use to watch university lectures during the lockdown.

7 points

Why would using a Windows app with WINE be a security issue? If the Windows app isn't sketchy, it shouldn't be a security risk, should it? Unless you're talking about privacy, in which case the issue is still the specific to the app you're running and not the fact that it is a Windows app in WINE... Or am I missing something?

2 points

what i meant to say is you can force wine to always open in firejail - so that you can't get severely mitigate chances of malware running loose on your computer - such as ransomware that can encrypt your hard drive.

edited to clarify

4 points
unknown author

Deleted before we saved it.

1 points

AFAIK wine app can also access all your system. So if there was a spyware in a windows app that you opened using wine, it can do all the spying stuff it could on windows.

1 points

I personally use firefox and thunderbird permanently in firejail. They run completely normal but are restricted to the rights they need. If there is a zeroday in for example firefox it is really harder for an attacker to escape from this additional sandbox. Additionally I use firejail to quickly spin up a fresh temporary browser to use for online banking. Another really nice thing is the possibility to specify a dns server for the jail. This allows me to have a bash alias wich starts arbitrary programs in a firejail which enforces usage of my pihole. Its a really nice tool, but it is important to note that it is only an additional security layer on top of your regular security measures.

2 points

It's really nice and really cool and all, and I'm not here to hate on anybody or any given software. I just like to remind people that chasing the paper tiger of cool easy security software: it can and it will lead to you getting completely blindsided with a security breach.

0 points

what are your security concerns with firejail?

3 points

None specifically with this or any given product. My concern is the excitement, the feeling of finding a new kind of pancea, or a new sharp knife for your toolbelt. And the thing about playing that game is the grass is always greener, and new tools are always shiny and cool.

This can very quickly cloud your judgement about how you're viewing your whole security stack and approach, and end up leaving you with blindspots because you're riding this confident high of your new awesome easy to use thing.

6 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.