[PR #6951] [MERGED] feature: add env-max-count / env-max-len to firejail.config #6243

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/6951
Author: @kmk3
Created: 10/30/2025
Status: Merged
Merged: 11/1/2025
Merged by: @kmk3

Base: masterHead: add-env-max-config


📝 Commits (1)

  • d1e02db feature: add env-max-count / env-max-len to firejail.config

📊 Changes

5 files changed (+43 additions, -8 deletions)

View changed files

📝 etc/firejail.config (+12 -0)
📝 src/firejail/checkcfg.c (+21 -0)
📝 src/firejail/env.c (+3 -2)
📝 src/firejail/firejail.h (+2 -2)
📝 src/firejail/main.c (+5 -4)

📄 Description

Replace the hardcoded MAX_ENVS and MAX_ENV_LEN limits with new
global configuration options, env-max-count and env-max-len, which
limit the maximum number of environment variables and the maximum length
of each environment variable (respectively).

Also, include the environment name and value in the "too long
environment variable" error message, similarly to the "too long
argument" error message (see PR #4676 and PR #5677).

This is a follow-up to #6878.

Closes #3678.


🔄 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/6951 **Author:** [@kmk3](https://github.com/kmk3) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 11/1/2025 **Merged by:** [@kmk3](https://github.com/kmk3) **Base:** `master` ← **Head:** `add-env-max-config` --- ### 📝 Commits (1) - [`d1e02db`](https://github.com/netblue30/firejail/commit/d1e02dbc63e1805d91d522ebcdf867a8dd71305f) feature: add env-max-count / env-max-len to firejail.config ### 📊 Changes **5 files changed** (+43 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `etc/firejail.config` (+12 -0) 📝 `src/firejail/checkcfg.c` (+21 -0) 📝 `src/firejail/env.c` (+3 -2) 📝 `src/firejail/firejail.h` (+2 -2) 📝 `src/firejail/main.c` (+5 -4) </details> ### 📄 Description Replace the hardcoded `MAX_ENVS` and `MAX_ENV_LEN` limits with new global configuration options, `env-max-count` and `env-max-len`, which limit the maximum number of environment variables and the maximum length of each environment variable (respectively). Also, include the environment name and value in the "too long environment variable" error message, similarly to the "too long argument" error message (see PR #4676 and PR #5677). This is a follow-up to #6878. Closes #3678. --- <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:53:23 -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#6243
No description provided.