mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #233] Invalid path $DOWNLOADS - problem with international characters #164
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#164
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?
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.
@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.
@xpolish commented on GitHub (Jan 19, 2016):
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:
@netblue30 commented on GitHub (Jan 19, 2016):
I put in some debug messages. Can you please compile and try the latest git version.
@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...
On Tue, 19 Jan 2016, netblue30 wrote:
@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.
@xpolish commented on GitHub (Jan 21, 2016):
you are right. Please add better error description like "Can't using
$HOME/Donwloads because it is symbolic link outside $HOME."
On Wed, 20 Jan 2016, netblue30 wrote:
@netblue30 commented on GitHub (Jan 21, 2016):
Sure, I'll add a description in the man page.