mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4935] trans: program hangs ("translate shell") #2827
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#2827
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 @Rosika2 on GitHub (Feb 12, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4935
Hi all,
after upgrading firejail to the latest version 0.9.68 I seem to run into problems when trying to use "translate shell".
In order to make sure it has nothing to with "translate shell" itself I downloaded the latest version of it: https://www.soimort.org/translate-shell/
That way I got the "trans"-script written in Perl. After making it executable:
chmod +x ./transit should work.
From the respective directory: (example):
./trans -shell hu:enAnd it does. But when trying to run it from within firejail the programm still starts but hangs at a certain point:
Nothing happens and I can eventually quit the process by invoking "CTRL-C":
Curiously enough "firejail --noprofile" yields the exact same results.
Until now the "/.trans"-command used to work perfectly within firejail. It´s just the latest firejail version which seems to trigger the problem...
Can anybody help, please?
Many thanks in advance and many greetings.
Rosika
P.S.:
My system: Linux Lubuntu 20.04.3 LTS, 64 bit
@Rosika2 commented on GitHub (Feb 12, 2022):
UPDATE:
Hi again,
what strikes me as odd is the following fact:
From the terminal I can
cdinto the directory where the trans script resides:cd /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Ergänzungen_zu_Programmen/zu_translate-shell_Feb2022/Then:
firejail --private=(pwd)From the sandbox created this way
transcan be used as per normal:@rusty-snake commented on GitHub (Feb 12, 2022):
Does
firejail --noprofile /bin/sh -c "./trans -shell hu:en"work?@Rosika2 commented on GitHub (Feb 12, 2022):
Hi @rusty-snake,
thanks for helping me.
I´ve tried what you suggested:
So the trans process is still stuck like in the beginning.
Sorry.
@Rosika2 commented on GitHub (Feb 12, 2022):
I just tried the following command:
firejail --noprofile /bin/sh -c "/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Ergänzungen_zu_Programmen/zu_translate-shell_Feb2022/trans -shell -R"explanation:
As you can see this one worked:
This command didn´t require any internet connection, I guess.
Could it mean that internet connection is somehow refused?
@Rosika2 commented on GitHub (Feb 13, 2022):
Hi again,
I don´t know if it helps at all but just want to let you know:
In order to get
transworking I don´t even have tocdinto the respective folder but can start it from anywhere.The direct command then works even with the
default.profile.BUT: I have to create an empty sandbox first. From there I can invoke the respective command by adding the correct path:
After using
transI can close the sandbox.Yet it seems to work just this way.
I´m still at a loss as why to the command
firejail --noprofile /bin/sh -c "/media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/DATEN-PARTITION/Dokumente/Ergänzungen_zu_Programmen/zu_translate-shell_Feb2022/trans -shell hu:en"doesn´t work any more.
Many greetings
Rosika
@Rosika2 commented on GitHub (Feb 13, 2022):
Hi once more,
in order to find out some more about the matter I copied the folder containing the
transscript to my Debian buster virtual machine withsftp.Here an older version of
firejailis installed:BUT actually in Debian the old command works:
So I took a closer look at the profiles which are read during the initializing process and there is one difference between the two firejail versions:
In Lubuntu with firejail version 0.9.68-3~0ubuntu20.04.0:
In Debian with firejail version 0.9.58.2-2+deb10u2:
The difference being
Reading profile /etc/firejail/disable-passwdmgr.incwhich is only set in the older version.
It seems this one (or rather the lack of it) should be responsible for the problem.
Yet I´m not totally sure of that.
Many greetings from Rosika
@rusty-snake commented on GitHub (Feb 13, 2022):
Nope, that not the issue here.
@Rosika2 commented on GitHub (Feb 13, 2022):
Hi,
o.k., thanks for the feedback.
That was just a wild guess on my part as I couldn´t find any other differences in the behaviour of the two firejail versions (see above).
Many greetings
Rosika
@rusty-snake commented on GitHub (Feb 13, 2022):
Anything useful if you run
firejail --profile=noprofile ./trans --debug?firejail --profile=noprofile /usr/bin/gawk --debug -f ./trans?@Rosika2 commented on GitHub (Feb 14, 2022):
Hi @rusty-snake,
thanks so much for your help.
The first command won´t work and I get this output:
As for the second command I get this:
Here firejail shuts down by itself.
Hopefully this will help a bit. I myself am not sure what to make of it.
Many thanks and many greetings.
Rosika