[PR #5537] [MERGED] add restrict-namespaces to (almost) all applicable profiles #5529

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/5537
Author: @smitsohu
Created: 12/20/2022
Status: Merged
Merged: 12/20/2022
Merged by: @netblue30

Base: masterHead: restrict-namespaces-profiles


📝 Commits (1)

  • e4f0f91 add restrict-namespaces to (almost) all profiles

📊 Changes

628 files changed (+967 additions, -13 deletions)

View changed files

📝 etc/profile-a-l/0ad.profile (+2 -0)
📝 etc/profile-a-l/2048-qt.profile (+2 -0)
📝 etc/profile-a-l/Cryptocat.profile (+2 -0)
📝 etc/profile-a-l/Fritzing.profile (+1 -0)
📝 etc/profile-a-l/JDownloader.profile (+2 -0)
📝 etc/profile-a-l/abiword.profile (+2 -0)
📝 etc/profile-a-l/agetpkg.profile (+1 -0)
📝 etc/profile-a-l/akonadi_control.profile (+1 -0)
📝 etc/profile-a-l/akregator.profile (+1 -0)
📝 etc/profile-a-l/alacarte.profile (+1 -0)
📝 etc/profile-a-l/alienarena.profile (+2 -0)
📝 etc/profile-a-l/alpine.profile (+1 -0)
📝 etc/profile-a-l/amarok.profile (+2 -0)
📝 etc/profile-a-l/amule.profile (+1 -0)
📝 etc/profile-a-l/android-studio.profile (+1 -0)
📝 etc/profile-a-l/anki.profile (+2 -0)
📝 etc/profile-a-l/anydesk.profile (+2 -0)
📝 etc/profile-a-l/aosp.profile (+2 -0)
📝 etc/profile-a-l/apktool.profile (+2 -0)
📝 etc/profile-a-l/apostrophe.profile (+2 -0)

...and 80 more files

📄 Description

Closes #5440

My algorithm was roughly as follows:

  1. skip profiles with # Redirect tag
  2. skip profiles without any seccomp directive
  3. comment out restrict-namespaces if seccomp is commented out
  4. comment out restrict-namespaces if there is a seccomp !chroot directive, indicating use of a new user namespace
  5. add restrict-namespaces to all other profiles, including default.profile and server.profile

There are a few special cases, among them: basilisk.profile, palemoon.profile, fdns.profile, unbound.profile.

I didn't attempt for now to fit restrict-namespaces to common browsers.


🔄 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/5537 **Author:** [@smitsohu](https://github.com/smitsohu) **Created:** 12/20/2022 **Status:** ✅ Merged **Merged:** 12/20/2022 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `restrict-namespaces-profiles` --- ### 📝 Commits (1) - [`e4f0f91`](https://github.com/netblue30/firejail/commit/e4f0f91ebdafaa3d9e073ee90f2aea5692ec5045) add restrict-namespaces to (almost) all profiles ### 📊 Changes **628 files changed** (+967 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `etc/profile-a-l/0ad.profile` (+2 -0) 📝 `etc/profile-a-l/2048-qt.profile` (+2 -0) 📝 `etc/profile-a-l/Cryptocat.profile` (+2 -0) 📝 `etc/profile-a-l/Fritzing.profile` (+1 -0) 📝 `etc/profile-a-l/JDownloader.profile` (+2 -0) 📝 `etc/profile-a-l/abiword.profile` (+2 -0) 📝 `etc/profile-a-l/agetpkg.profile` (+1 -0) 📝 `etc/profile-a-l/akonadi_control.profile` (+1 -0) 📝 `etc/profile-a-l/akregator.profile` (+1 -0) 📝 `etc/profile-a-l/alacarte.profile` (+1 -0) 📝 `etc/profile-a-l/alienarena.profile` (+2 -0) 📝 `etc/profile-a-l/alpine.profile` (+1 -0) 📝 `etc/profile-a-l/amarok.profile` (+2 -0) 📝 `etc/profile-a-l/amule.profile` (+1 -0) 📝 `etc/profile-a-l/android-studio.profile` (+1 -0) 📝 `etc/profile-a-l/anki.profile` (+2 -0) 📝 `etc/profile-a-l/anydesk.profile` (+2 -0) 📝 `etc/profile-a-l/aosp.profile` (+2 -0) 📝 `etc/profile-a-l/apktool.profile` (+2 -0) 📝 `etc/profile-a-l/apostrophe.profile` (+2 -0) _...and 80 more files_ </details> ### 📄 Description Closes #5440 My algorithm was roughly as follows: 1. skip profiles with `# Redirect` tag 2. skip profiles without any `seccomp` directive 3. comment out `restrict-namespaces` if `seccomp` is commented out 4. comment out `restrict-namespaces` if there is a `seccomp !chroot` directive, indicating use of a new user namespace 5. add `restrict-namespaces` to all other profiles, including default.profile and server.profile There are a few special cases, among them: basilisk.profile, palemoon.profile, fdns.profile, unbound.profile. I didn't attempt for now to fit `restrict-namespaces` to common browsers. --- <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:40:06 -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#5529
No description provided.