[PR #6789] [CLOSED] build: sort.py: replace items in private-etc with groups #6169

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6789
Author: @sudoAlphaX
Created: 6/18/2025
Status: Closed

Base: masterHead: private-etc-optimize


📝 Commits (1)

  • 8beecb1 build: sort.py: add feature to strip default private-etc and replace items with etc-groups

📊 Changes

2 files changed (+112 additions, -1 deletions)

View changed files

📝 contrib/sort.py (+4 -1)
contrib/trim_private_etc.py (+108 -0)

📄 Description

Modifies sort.py such that when processing private-etc, it removes all
the default automatically included items, and if all items from any
particular group are present, it replaces those private-etc items with
the @group_name.

Uses regex to directly parse etc_groups.h header file

Related: #6783 and 02ad655


🔄 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/6789 **Author:** [@sudoAlphaX](https://github.com/sudoAlphaX) **Created:** 6/18/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `private-etc-optimize` --- ### 📝 Commits (1) - [`8beecb1`](https://github.com/netblue30/firejail/commit/8beecb1c6ea3aaa985d6f4ff95be16c615599f15) build: sort.py: add feature to strip default private-etc and replace items with etc-groups ### 📊 Changes **2 files changed** (+112 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `contrib/sort.py` (+4 -1) ➕ `contrib/trim_private_etc.py` (+108 -0) </details> ### 📄 Description Modifies sort.py such that when processing private-etc, it removes all the default automatically included items, and if all items from any particular group are present, it replaces those private-etc items with the @group_name. Uses regex to directly parse etc_groups.h header file Related: #6783 and 02ad655 --- <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:52:01 -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#6169
No description provided.