mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4010] [MERGED] Add --mkdir and --mkfile CLI options #4992
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#4992
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:mkdir_and_mkfile_options📝 Commits (1)
2dc81faAdd --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.