mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6210] 127.0.0.1 should reference localhost, not the hostname #3223
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#3223
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 @intereglementet on GitHub (Feb 16, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6210
/etc/hosts files typically contain something like this:
This makes the following feature typically do away with the localhost entry, and you end up with two hostname entries.
f7e2c25730/src/firejail/fs_hostname.c (L104)This causes problems for applications referencing localhost. The above line should, I think, instead look for 127.0.1.1.
A workaround is to have two localhost entries in the original file, as only one 127.0.0.1 entry is processed.
@intereglementet commented on GitHub (Feb 29, 2024):
I did some additional googling. The conclusion is that having 127.0.0.1 alterered and set to anything other than "localhost" is, unfortunately, plain wrong.
The thing with 127.0.1.1 being set to whatever /etc/hostname contains appears to be a de facto standard introduced into debian almost 20 years ago.