mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #629] [MERGED] Additional fixes of command line quoting #3694
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#3694
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/629
Author: @manevich
Created: 7/12/2016
Status: ✅ Merged
Merged: 7/25/2016
Merged by: @netblue30
Base:
master← Head:patch-2📝 Commits (5)
68b9c13Another command line quoting fix0a79f8eRemove redundant code834ca52Small fix7669b94Fix problem with single quotes in args1f4e6d3Fix problem with single quotes in args📊 Changes
2 files changed (+82 additions, -21 deletions)
View changed files
📝
src/firejail/main.c(+81 -11)📝
src/firejail/run_symlink.c(+1 -10)📄 Description
Previous fix of command line quoting was only partial.
Code execution still was possible using constructions like this:
firejail 'echo $(uname -a) && echo'firejail -c 'echo $(uname -a)'Changes to
main.c:I see only 2 cases for quoting:
Code removed from
run_symlink.cnot just redundant, but also caused obscure problems when symlinked program used withshell nonein profile.For example:
results in "file not found" error, while
firejail $SUCH_PROGRAM 1\&2and
firejail $SUCH_PROGRAM '1&2'both work fine.
--joincommand's behaviour is still not fixed, will look at it later.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.