[PR #4590] [MERGED] Read mount id also on legacy kernels #5199

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/4590
Author: @smitsohu
Created: 10/5/2021
Status: Merged
Merged: 10/6/2021
Merged by: @smitsohu

Base: masterHead: mountid


📝 Commits (2)

  • 84d5469 simplify recursive remounting
  • a78d014 mountinfo: get mount id from failed call to name_to_handle_at

📊 Changes

3 files changed (+63 additions, -48 deletions)

View changed files

📝 src/firejail/firejail.h (+1 -1)
📝 src/firejail/fs.c (+17 -21)
📝 src/firejail/mountinfo.c (+45 -26)

📄 Description

Recursive remounting (noexec, read-only, read-write) currently needs a mount id. So far this id could not be obtained on kernels before 3.15.

Add support for recursive remounting also on legacy kernels, like frequently found on mobile devices. Should help SailfishOS community ports.


🔄 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/4590 **Author:** [@smitsohu](https://github.com/smitsohu) **Created:** 10/5/2021 **Status:** ✅ Merged **Merged:** 10/6/2021 **Merged by:** [@smitsohu](https://github.com/smitsohu) **Base:** `master` ← **Head:** `mountid` --- ### 📝 Commits (2) - [`84d5469`](https://github.com/netblue30/firejail/commit/84d5469a40bdc65aa5607d11a9060bb710bfd9b9) simplify recursive remounting - [`a78d014`](https://github.com/netblue30/firejail/commit/a78d014660d8a1daaea95f11da399c2e2305cc63) mountinfo: get mount id from failed call to name_to_handle_at ### 📊 Changes **3 files changed** (+63 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/firejail.h` (+1 -1) 📝 `src/firejail/fs.c` (+17 -21) 📝 `src/firejail/mountinfo.c` (+45 -26) </details> ### 📄 Description Recursive remounting (`noexec`, `read-only`, `read-write`) currently needs a mount id. So far this id could not be obtained on kernels before 3.15. Add support for recursive remounting also on legacy kernels, like frequently found on mobile devices. Should help SailfishOS community ports. --- <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:34:05 -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#5199
No description provided.