mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1313] Also read /etc/hosts when using the firejail hosts-file option #897
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#897
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 @ghost on GitHub (May 26, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1313
Would it be possible to add a parameter to hosts-file so it can also read /etc/hosts in addition to the new designated hosts file instead of only that file as it is currently ?
@netblue30 commented on GitHub (May 26, 2017):
Just configuring /etc/hostname would not be enough. Use --hostname= and it will set your hostname the right way.
@ghost commented on GitHub (May 26, 2017):
I apologize for not making myself more clear.
Let's say I have as /etc/hosts this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
And somewhere in my home directory I have this seperate hosts file, let's say in ~/.hosts
Now if I add
hosts-file ~/.hoststo my aplication profile that application will start using the designated hosts file ignoring /etc/hosts.I'm wondering if it would be possible to add an option to include /etc/hosts along with the designated hosts file.
I thought this would be a good idea for some reason a few hours ago but now I see that it's just better to just cp /etc/hosts ~/.hosts and then cat second_hosts_file >> ~/.hosts everytime second_hosts_file changes.