[GH-ISSUE #207] Firejail cannot handle special characters, shutsdown #143

Closed
opened 2026-05-05 05:09:32 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @g4jc on GitHub (Jan 2, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/207

This bug only effects files with special characters, such as ()?!.
Perhaps there is some way to sanatize the input prior to starting the chroot.

Programs affected: Image viewers, PDF viewers, some media players.

user@localhost ~/Downloads % feh merry-christmas-quotes-\(2\).jpg 
user@localhost ~/Downloads % echo "the above command works fine... now let's try to firejail it..."
user@localhost ~/Downloads % firejail feh merry-christmas-quotes-\(2\).jpg
Reading profile /etc/firejail/generic.profile
Reading profile /etc/firejail/disable-mgmt.inc
Reading profile /etc/firejail/disable-secret.inc
Reading profile /etc/firejail/disable-common.inc

** Note: you can use --noprofile to disable generic.profile **

Parent pid 3764, child pid 3765
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cannot disable /sys/hypervisor directory
Child process initialized
/bin/bash: -c: line 0: syntax error near unexpected token `('
/bin/bash: -c: line 0: `feh merry-christmas-quotes-(2).jpg '
parent is shutting down, bye...
Originally created by @g4jc on GitHub (Jan 2, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/207 This bug only effects files with special characters, such as ()?!. Perhaps there is some way to sanatize the input prior to starting the chroot. Programs affected: Image viewers, PDF viewers, some media players. ``` user@localhost ~/Downloads % feh merry-christmas-quotes-\(2\).jpg user@localhost ~/Downloads % echo "the above command works fine... now let's try to firejail it..." user@localhost ~/Downloads % firejail feh merry-christmas-quotes-\(2\).jpg Reading profile /etc/firejail/generic.profile Reading profile /etc/firejail/disable-mgmt.inc Reading profile /etc/firejail/disable-secret.inc Reading profile /etc/firejail/disable-common.inc ** Note: you can use --noprofile to disable generic.profile ** Parent pid 3764, child pid 3765 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Warning: cannot disable /sys/hypervisor directory Child process initialized /bin/bash: -c: line 0: syntax error near unexpected token `(' /bin/bash: -c: line 0: `feh merry-christmas-quotes-(2).jpg ' parent is shutting down, bye... ```
gitea-mirror 2026-05-05 05:09:32 -06:00
Author
Owner

@netblue30 commented on GitHub (Jan 3, 2016):

I'll have to look into it, thanks!

<!-- gh-comment-id:168499491 --> @netblue30 commented on GitHub (Jan 3, 2016): I'll have to look into it, thanks!
Author
Owner

@netblue30 commented on GitHub (Jan 11, 2016):

It looks like this was fixed in the latest version, 0.9.36

<!-- gh-comment-id:170687757 --> @netblue30 commented on GitHub (Jan 11, 2016): It looks like this was fixed in the latest version, 0.9.36
Author
Owner

@ivan commented on GitHub (Jan 11, 2016):

Thanks for the fix, I can finally stop double-quoting everything 😃

<!-- gh-comment-id:170695750 --> @ivan commented on GitHub (Jan 11, 2016): Thanks for the fix, I can finally stop double-quoting everything :smiley:
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#143
No description provided.