[PR #4010] [MERGED] Add --mkdir and --mkfile CLI options #4992

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

📋 Pull Request Information

Original PR: https://github.com/netblue30/firejail/pull/4010
Author: @Tomin1
Created: 2/25/2021
Status: Merged
Merged: 2/26/2021
Merged by: @netblue30

Base: masterHead: mkdir_and_mkfile_options


📝 Commits (1)

  • 2dc81fa Add --mkdir and --mkfile command line options for firejail

📊 Changes

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

View changed files

📝 src/firejail/main.c (+20 -1)
📝 src/firejail/usage.c (+2 -0)

📄 Description

Profile files are defined as a means to "pass several command line arguments to firejail" but apparently for example mkdir and mkfile options are available in context of profile files, but can't be specified directly from command line.

Add support for -mkdir and --mkfile options so that executing:
firejail --mkdir=${HOME}/directory/path
--whitelist=${HOME}/directory/path

behaves similarly as having profile file content:
mkdir ${HOME}/directory/path
whitelist ${HOME}/directory/path

This patches was part of Sailfish's firejail packaging. It was developed as part of implementing firejail sandboxing in Sailfish OS and just like the previous patches written by my colleague and previously reviewed by me or one of my other colleagues. See also #3960 for discussion.


🔄 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/4010 **Author:** [@Tomin1](https://github.com/Tomin1) **Created:** 2/25/2021 **Status:** ✅ Merged **Merged:** 2/26/2021 **Merged by:** [@netblue30](https://github.com/netblue30) **Base:** `master` ← **Head:** `mkdir_and_mkfile_options` --- ### 📝 Commits (1) - [`2dc81fa`](https://github.com/netblue30/firejail/commit/2dc81faa1395cbda3affb94f9d8d9cca76a1ab73) Add --mkdir and --mkfile command line options for firejail ### 📊 Changes **2 files changed** (+22 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/firejail/main.c` (+20 -1) 📝 `src/firejail/usage.c` (+2 -0) </details> ### 📄 Description Profile files are defined as a means to "pass several command line arguments to firejail" but apparently for example mkdir and mkfile options are available in context of profile files, but can't be specified directly from command line. Add support for -mkdir and --mkfile options so that executing: firejail --mkdir=${HOME}/directory/path\ --whitelist=${HOME}/directory/path behaves similarly as having profile file content: mkdir ${HOME}/directory/path whitelist ${HOME}/directory/path This patches was part of [Sailfish's firejail packaging](https://github.com/sailfishos/firejail/). It was developed as part of implementing firejail sandboxing in Sailfish OS and just like the previous patches written by my colleague and previously reviewed by me or one of my other colleagues. See also #3960 for discussion. --- <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:30: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#4992
No description provided.