[PR #6711] [MERGED] modif: improve error messages in mountinfo.c #6132

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6711
Author: @kmk3
Created: 4/16/2025
Status: Merged
Merged: 4/19/2025
Merged by: @kmk3

Base: masterHead: improve-mountinfo-errors


📝 Commits (1)

  • aaffd2b modif: improve error messages in mountinfo.c

📊 Changes

1 file changed (+21 additions, -8 deletions)

View changed files

📝 src/firejail/mountinfo.c (+21 -8)

📄 Description

Currently when a line from /proc/self/mountinfo is too long, firejail
exits with an unclear error message:

Error: cannot read /proc/self/mountinfo

So reword it and include the maximum line length and the offending line:

Error: /proc/self/mountinfo line is too long and may be truncated (4095 >= 4095): [...]

Improve other error messages in mountinfo.c as well.

Relates to #6450.


🔄 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/6711 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 4/16/2025 **Status:** ✅ Merged **Merged:** 4/19/2025 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `improve-mountinfo-errors` --- ### 📝 Commits (1) - [`aaffd2b`](https://github.com/netblue30/firejail/commit/aaffd2b3b2e50a378b2451772e49063a2e2f6eab) modif: improve error messages in mountinfo.c ### 📊 Changes **1 file changed** (+21 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/mountinfo.c` (+21 -8) </details> ### 📄 Description Currently when a line from /proc/self/mountinfo is too long, firejail exits with an unclear error message: Error: cannot read /proc/self/mountinfo So reword it and include the maximum line length and the offending line: Error: /proc/self/mountinfo line is too long and may be truncated (4095 >= 4095): [...] Improve other error messages in mountinfo.c as well. Relates to #6450. --- <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:51:22 -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#6132
No description provided.