diff options
author | smitsohu <smitsohu@gmail.com> | 2020-12-21 18:10:49 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2020-12-21 18:39:50 +0100 |
commit | 45c28b808df9529aca32fdd755ac14e8101af3c1 (patch) | |
tree | 631db451c28a36cce75135759861acb80798234a /src/profstats | |
parent | add mac multicast address check to profile_check_line (diff) | |
download | firejail-45c28b808df9529aca32fdd755ac14e8101af3c1.tar.gz firejail-45c28b808df9529aca32fdd755ac14e8101af3c1.tar.zst firejail-45c28b808df9529aca32fdd755ac14e8101af3c1.zip |
fix forwarding of login option to restricted shell
If firejail is the login shell, the SHELL environment variable
is set to the path of the firejail executable. This leads to execution of a
'firejail -l' command, but firejail inside the sandbox does
not know what to do with the -l option and just starts bash without
forwarding this option.
Fix this by not checking $SHELL when guessing which shell should be used.
run_no_sandbox(), which relies on reading the environment, runs before
setting the login_shell variable, and is not affected.
Diffstat (limited to 'src/profstats')
0 files changed, 0 insertions, 0 deletions