mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1995] Adding a global modifier (net=eth0) to all firejails #1346
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Futureknows on GitHub (Jun 14, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1995
How can I add a global parameter to all launched firejails?
In my case I want everything to open with
--net=eth0.I tried adding a line
net=eth0to /etc/firejail/default.profile, /etc/firejail/default.local and /etc/firejail/globals.local. No luck. Do I need to sudo firecfg to rebuild symlinks?@Fred-Barclay commented on GitHub (Jun 14, 2018):
Try
net eth0in /etc/firejail/globals.local (the same thing as what you did without the=).@Futureknows commented on GitHub (Jun 14, 2018):
I did that but it didn't take, I don't see /etc/firejail/globals.local being parsed during Firefox launch.
Below is list of profiles that get read by default.
@Fred-Barclay commented on GitHub (Jun 14, 2018):
Oh -- firejial is in /usr/local/ for you. So instead, put
net nonein /usr/local/etc/firejail/globals.local.Also are there files in /etc/firejail? You maybe should remove them if so. Firejail in your case will be reading from /usr/local/etc/firejail/, not /etc/firejail/.
@chiraag-nataraj commented on GitHub (Jun 15, 2018):
@Fred-Barclay Probably a bad idea to remove them manually, since those are probably installed by a package manager. It's better to uninstall the package or just leave the files alone - leaving the package installed has the benefit that you'll know when a new version of firejail is released (and can uninstall the local version then should you want to do so).
@Futureknows commented on GitHub (Jun 15, 2018):
Thanks, I had installed from a package manager then updated several versions manually leaving traces everywhere. I removed firejail then deleted every firejail* trace from the system. Compiled and installed latest and now I have one odd problem: firecfg works fine as user but sudo firecfg says firecfg not found.
@Fred-Barclay commented on GitHub (Jun 15, 2018):
What do
where firecfgandfirecfg --versionsay?@Futureknows commented on GitHub (Jun 15, 2018):
Both Firejail and Firecfg report 0.9.55.
[user@localhost ~]$ sudo firecfg [sudo] password for user: sudo: firecfg: command not found [user@localhost ~]$ firecfg Error: cannot set the symbolic links in /usr/local/bin The proper way to run this command is "sudo firecfg".@Fred-Barclay commented on GitHub (Jun 15, 2018):
@Futureknows What is the output of
where firecfg?@Futureknows commented on GitHub (Jun 15, 2018):
[user@localhost ~]$ where firecfg bash: where: command not found[user@localhost ~]$ sudo where firecfg [sudo] password for user: sudo: where: command not foundI see firecfg in /usr/local/bin
@Fred-Barclay commented on GitHub (Jun 15, 2018):
Sorry --
whereis firefox. Looks like I've been using Windows a bit too much! 😄@Futureknows commented on GitHub (Jun 16, 2018):
[user@localhost ~]$ whereis firefox firefox: /usr/bin/firefox /usr/lib64/firefox /etc/firefox /usr/local/bin/firefox /usr/share/man/man1/firefox.1.gz@Fred-Barclay commented on GitHub (Jun 16, 2018):
And... I messed up again. What does
whereis firecfgsay?@Futureknows commented on GitHub (Jun 17, 2018):
user@Mint ~ $ whereis firecfg firecfg: /usr/local/bin/firecfg@Futureknows commented on GitHub (Jun 17, 2018):
Ok, you fixed it! After I ran
sudo /usr/local/bin/firecfg, it fixed the symlink.Now it works as expected without the full path (`sudo firecfg')