Fix security problem with running programs inside root or remote shell with --execute-command

selivan asked for this feature almost 4 years ago — 1 comment

selivan commented almost 4 years ago


If you run inside guake a root shell or a shell on a remote server, any other program can run anything there. Also, if you are running something like fdisk or innotop inside the sell, careless input may lead to a very undesirable results.

For this reasons --execute-command should be allowed only if shell in selected tab is not running any other programs, like ssh or sudo.

We should check if either pgrep -P is empty or all that processes are is stopped (T) state(for background tasks).

Join the discussion!

with GitHub to comment