[PR #3657] [MERGED] Fix SELinux crash #4837

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/3657
Author: @reinerh
Created: 10/6/2020
Status: Merged
Merged: 10/6/2020
Merged by: @reinerh

Base: masterHead: selinux


📝 Commits (2)

  • e06b002 selinux: don't try to relabel path when selinux is not enabled
  • da13836 selinux: exit when selinux is enabled but opening handle fails

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 src/firejail/selinux.c (+4 -1)

📄 Description

Fixes the crash on systems where SELinux is not enabled.

Also in case SELinux is enabled but the handle can't be opened, exit, as otherwise it would also crash.


🔄 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/3657 **Author:** [@reinerh](https://github.com/reinerh) **Created:** 10/6/2020 **Status:** ✅ Merged **Merged:** 10/6/2020 **Merged by:** [@reinerh](https://github.com/reinerh) **Base:** `master` ← **Head:** `selinux` --- ### 📝 Commits (2) - [`e06b002`](https://github.com/netblue30/firejail/commit/e06b0025cb02366d3473cc698ac418449772fe8c) selinux: don't try to relabel path when selinux is not enabled - [`da13836`](https://github.com/netblue30/firejail/commit/da13836d202c286a1d8cf837f506fa2ffe80d76f) selinux: exit when selinux is enabled but opening handle fails ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/selinux.c` (+4 -1) </details> ### 📄 Description Fixes the crash on systems where SELinux is not enabled. Also in case SELinux is enabled but the handle can't be opened, exit, as otherwise it would also crash. --- <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:27:31 -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#4837
No description provided.