[GH-ISSUE #233] Invalid path $DOWNLOADS - problem with international characters #164

Closed
opened 2026-05-05 05:12:29 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @xpolish on GitHub (Jan 18, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/233

Hi,
Programs using DOWNLOADS environment don't starts, if international characters used in path.

$ firejail opera
Parent pid 12119, child pid 12120
Error: invalid whitelist path /home/polish/Stažené

Problems are international characters. If I edit .config/user-dirs.dirs:
XDG_DOWNLOAD_DIR="$HOME/Stažené"
and change "Stažené" to "tmp" firejail works well.

Originally created by @xpolish on GitHub (Jan 18, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/233 Hi, Programs using DOWNLOADS environment don't starts, if international characters used in path. $ firejail opera Parent pid 12119, child pid 12120 Error: invalid whitelist path /home/polish/Stažené Problems are international characters. If I edit .config/user-dirs.dirs: XDG_DOWNLOAD_DIR="$HOME/Stažené" and change "Stažené" to "tmp" firejail works well.
gitea-mirror 2026-05-05 05:12:29 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

I need you to put back XDG_DOWNLOAD_DIR="$HOME/Stažené", run "firejail --debug opera" and post the output here. Thanks.

<!-- gh-comment-id:172585905 --> @netblue30 commented on GitHub (Jan 18, 2016): I need you to put back XDG_DOWNLOAD_DIR="$HOME/Stažené", run "firejail --debug opera" and post the output here. Thanks.
Author
Owner

@xpolish commented on GitHub (Jan 19, 2016):

 Hi,

output follow:

polish@norraena:~$ firejail --debug opera
Command name #opera#
Found opera profile in /etc/firejail directory
Reading profile /etc/firejail/opera.profile
Reading profile /etc/firejail/disable-mgmt.inc
Reading profile /etc/firejail/disable-secret.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/whitelist-common.inc
Using the local network stack
Parent pid 15162, child pid 15163
Initializing child process
PID namespace installed
Mounting tmpfs on /run/firejail/mnt directory
Mounting read-only /bin, /sbin, /lib, /lib32, /lib64, /usr, /etc, /var
Mounting tmpfs on /var/lock
Mounting tmpfs on /var/tmp
Mounting tmpfs on /var/log
Mounting tmpfs on /var/lib/dhcp
Mounting tmpfs on /var/lib/snmp
Mounting tmpfs on /var/lib/sudo
Create the new utmp file
Mount the new utmp file
Cleaning /home directory
Sanitizing /etc/passwd
Sanitizing /etc/group
Disable /etc/firejail
Replaced whitelist path: whitelist /home/polish/.config/opera
extracted Stažené from ~/.config/user-dirs.dirs
Downloads directory resolved as "Stažené"
Error: invalid whitelist path /home/polish/Stažené
Error: cannot establish communication with the parent, exiting...
ESC]0;polish@norraena:

On Mon, 18 Jan 2016, netblue30 wrote:

I need you to put back XDG_DOWNLOAD_DIR="$HOME/Stažené", run "firejail --debug opera" and post the output here. Thansk.


Reply to this email directly or view it on GitHub:
https://github.com/netblue30/firejail/issues/233#issuecomment-172585905

<!-- gh-comment-id:172757340 --> @xpolish commented on GitHub (Jan 19, 2016): ``` Hi, ``` output follow: polish@norraena:~$ firejail --debug opera Command name #opera# Found opera profile in /etc/firejail directory Reading profile /etc/firejail/opera.profile Reading profile /etc/firejail/disable-mgmt.inc Reading profile /etc/firejail/disable-secret.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/whitelist-common.inc Using the local network stack Parent pid 15162, child pid 15163 Initializing child process PID namespace installed Mounting tmpfs on /run/firejail/mnt directory Mounting read-only /bin, /sbin, /lib, /lib32, /lib64, /usr, /etc, /var Mounting tmpfs on /var/lock Mounting tmpfs on /var/tmp Mounting tmpfs on /var/log Mounting tmpfs on /var/lib/dhcp Mounting tmpfs on /var/lib/snmp Mounting tmpfs on /var/lib/sudo Create the new utmp file Mount the new utmp file Cleaning /home directory Sanitizing /etc/passwd Sanitizing /etc/group Disable /etc/firejail Replaced whitelist path: whitelist /home/polish/.config/opera extracted Stažené from ~/.config/user-dirs.dirs Downloads directory resolved as "Stažené" Error: invalid whitelist path /home/polish/Stažené Error: cannot establish communication with the parent, exiting... ESC]0;polish@norraena: On Mon, 18 Jan 2016, netblue30 wrote: > I need you to put back XDG_DOWNLOAD_DIR="$HOME/Stažené", run "firejail --debug opera" and post the output here. Thansk. > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/netblue30/firejail/issues/233#issuecomment-172585905
Author
Owner

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

I put in some debug messages. Can you please compile and try the latest git version.

<!-- gh-comment-id:172892003 --> @netblue30 commented on GitHub (Jan 19, 2016): I put in some debug messages. Can you please compile and try the latest git version.
Author
Owner

@xpolish commented on GitHub (Jan 20, 2016):

Hello,

Stažené is symbolic link to /data/download/

$ firejail --debug opera
Command name #opera#
Found opera profile in /usr/local/etc/firejail directory
Reading profile /usr/local/etc/firejail/opera.profile
Reading profile /usr/local/etc/firejail/disable-mgmt.inc
Reading profile /usr/local/etc/firejail/disable-secret.inc
Reading profile /usr/local/etc/firejail/disable-common.inc
Reading profile /usr/local/etc/firejail/disable-devel.inc
Reading profile /usr/local/etc/firejail/whitelist-common.inc
Using the local network stack
Parent pid 6712, child pid 6713
Initializing child process
PID namespace installed
Mounting tmpfs on /run/firejail/mnt directory
Mounting read-only /bin, /sbin, /lib, /lib32, /lib64, /usr, /etc, /var
Mounting tmpfs on /var/lock
Mounting tmpfs on /var/tmp
Mounting tmpfs on /var/log
Mounting tmpfs on /var/lib/dhcp
Mounting tmpfs on /var/lib/snmp
Mounting tmpfs on /var/lib/sudo
Create the new utmp file
Mount the new utmp file
Cleaning /home directory
Sanitizing /etc/passwd
Sanitizing /etc/group
Disable /etc/firejail
Disable /usr/local/etc/firejail
Debug 339: new_name #/home/polish/.config/opera#
Replaced whitelist path: whitelist /home/polish/.config/opera
extracted Stažené from ~/.config/user-dirs.dirs
Downloads directory resolved as "Stažené"
Debug 339: new_name #/home/polish/Stažené#
Debug 381: fname #/data/download#, cfg.homedir #/home/polish#
Error: invalid whitelist path /home/polish/Stažené
Error: cannot establish communication with the parent, exiting...

 Polish

On Tue, 19 Jan 2016, netblue30 wrote:

I put in some debug messages. Can you please compile and try the latest git version.


Reply to this email directly or view it on GitHub:
https://github.com/netblue30/firejail/issues/233#issuecomment-172892003

<!-- gh-comment-id:173171626 --> @xpolish commented on GitHub (Jan 20, 2016): Hello, Stažené is symbolic link to /data/download/ $ firejail --debug opera Command name #opera# Found opera profile in /usr/local/etc/firejail directory Reading profile /usr/local/etc/firejail/opera.profile Reading profile /usr/local/etc/firejail/disable-mgmt.inc Reading profile /usr/local/etc/firejail/disable-secret.inc Reading profile /usr/local/etc/firejail/disable-common.inc Reading profile /usr/local/etc/firejail/disable-devel.inc Reading profile /usr/local/etc/firejail/whitelist-common.inc Using the local network stack Parent pid 6712, child pid 6713 Initializing child process PID namespace installed Mounting tmpfs on /run/firejail/mnt directory Mounting read-only /bin, /sbin, /lib, /lib32, /lib64, /usr, /etc, /var Mounting tmpfs on /var/lock Mounting tmpfs on /var/tmp Mounting tmpfs on /var/log Mounting tmpfs on /var/lib/dhcp Mounting tmpfs on /var/lib/snmp Mounting tmpfs on /var/lib/sudo Create the new utmp file Mount the new utmp file Cleaning /home directory Sanitizing /etc/passwd Sanitizing /etc/group Disable /etc/firejail Disable /usr/local/etc/firejail Debug 339: new_name #/home/polish/.config/opera# Replaced whitelist path: whitelist /home/polish/.config/opera extracted Stažené from ~/.config/user-dirs.dirs Downloads directory resolved as "Stažené" Debug 339: new_name #/home/polish/Stažené# Debug 381: fname #/data/download#, cfg.homedir #/home/polish# Error: invalid whitelist path /home/polish/Stažené Error: cannot establish communication with the parent, exiting... ``` Polish ``` On Tue, 19 Jan 2016, netblue30 wrote: > I put in some debug messages. Can you please compile and try the latest git version. > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/netblue30/firejail/issues/233#issuecomment-172892003
Author
Owner

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

This is why is failing! The link should also be under $HOME. I cannot bring in directories from outside, it would create some very interesting security problems.

<!-- gh-comment-id:173212524 --> @netblue30 commented on GitHub (Jan 20, 2016): This is why is failing! The link should also be under $HOME. I cannot bring in directories from outside, it would create some very interesting security problems.
Author
Owner

@xpolish commented on GitHub (Jan 21, 2016):

 Hello,

you are right. Please add better error description like "Can't using
$HOME/Donwloads because it is symbolic link outside $HOME."

 Thank you   Polish

On Wed, 20 Jan 2016, netblue30 wrote:

This is why is failing! The link should also be under $HOME. I cannot bring in directories from outside, it would create some very interesting security problems.


Reply to this email directly or view it on GitHub:
https://github.com/netblue30/firejail/issues/233#issuecomment-173212524

<!-- gh-comment-id:173479962 --> @xpolish commented on GitHub (Jan 21, 2016): ``` Hello, ``` you are right. Please add better error description like "Can't using $HOME/Donwloads because it is symbolic link outside $HOME." ``` Thank you Polish ``` On Wed, 20 Jan 2016, netblue30 wrote: > This is why is failing! The link should also be under $HOME. I cannot bring in directories from outside, it would create some very interesting security problems. > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/netblue30/firejail/issues/233#issuecomment-173212524
Author
Owner

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

Sure, I'll add a description in the man page.

<!-- gh-comment-id:173574123 --> @netblue30 commented on GitHub (Jan 21, 2016): Sure, I'll add a description in the man page.
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#164
No description provided.