[PR #4560] [MERGED] Remove /etc/hosts is_link check #5182

Closed
opened 2026-05-05 10:33:47 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/4560
Author: @onny
Created: 9/19/2021
Status: Merged
Merged: 9/24/2021
Merged by: @netblue30

Base: masterHead: nolinkcheck


📝 Commits (2)

  • ccc726f remove hosts file link check
  • c2c51e7 remove hosts file link check

📊 Changes

1 file changed (+0 additions, -7 deletions)

View changed files

📝 src/firejail/fs_hostname.c (+0 -7)

📄 Description

This patch fixes https://github.com/netblue30/firejail/issues/2758#issuecomment-805174951 . Especially for NixOS users, the file /etc/hosts is a symlink and firejail fails with exiting after is_link() check.
Removing this check fixes the issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netblue30/firejail/pull/4560 **Author:** [@onny](https://github.com/onny) **Created:** 9/19/2021 **Status:** ✅ Merged **Merged:** 9/24/2021 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `nolinkcheck` --- ### 📝 Commits (2) - [`ccc726f`](https://github.com/netblue30/firejail/commit/ccc726f8ec877d8cda720daa2498e43629b6dd48) remove hosts file link check - [`c2c51e7`](https://github.com/netblue30/firejail/commit/c2c51e7ca56075e7388b4f50922b148615d1b125) remove hosts file link check ### 📊 Changes **1 file changed** (+0 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/fs_hostname.c` (+0 -7) </details> ### 📄 Description This patch fixes https://github.com/netblue30/firejail/issues/2758#issuecomment-805174951 . Especially for NixOS users, the file `/etc/hosts` is a symlink and firejail fails with exiting after `is_link()` check. Removing this check fixes the issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 10:33:47 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#5182
No description provided.