[PR #3268] [MERGED] remount hardening: move to file descriptor based mounts #4704

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/3268
Author: @smitsohu
Created: 3/6/2020
Status: Merged
Merged: 3/13/2020
Merged by: @startx2017

Base: masterHead: remount


📝 Commits (2)

  • ad98c8f remount hardening: move to file descriptor based mounts
  • 4b096b5 fail if opening the resolved path fails

📊 Changes

2 files changed (+118 additions, -80 deletions)

View changed files

📝 src/firejail/firejail.h (+2 -2)
📝 src/firejail/fs.c (+116 -78)

📄 Description

Harden noexec, read-only, read-write options by moving entirely to file descriptor based mounts.

Along the way fix long-time broken writable-var-log option, which didn't work any more because of an ownership check.


🔄 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/3268 **Author:** [@smitsohu](https://github.com/smitsohu) **Created:** 3/6/2020 **Status:** ✅ Merged **Merged:** 3/13/2020 **Merged by:** [@startx2017](https://github.com/startx2017) **Base:** `master` ← **Head:** `remount` --- ### 📝 Commits (2) - [`ad98c8f`](https://github.com/netblue30/firejail/commit/ad98c8f8edf3821c47559f8bf368ebd173bdafd1) remount hardening: move to file descriptor based mounts - [`4b096b5`](https://github.com/netblue30/firejail/commit/4b096b594529014bc0e173eb484c7828413568e4) fail if opening the resolved path fails ### 📊 Changes **2 files changed** (+118 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/firejail.h` (+2 -2) 📝 `src/firejail/fs.c` (+116 -78) </details> ### 📄 Description Harden `noexec`, `read-only`, `read-write` options by moving entirely to file descriptor based mounts. Along the way fix long-time broken `writable-var-log` option, which didn't work any more because of an ownership check. --- <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:25:04 -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#4704
No description provided.