mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 08:25:27 +02:00
[PR #617] connect: interactive mode: also accept /usr/bin/perl as parent #617
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#617
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?
📋 Pull Request Information
Original PR: https://github.com/ovh/the-bastion/pull/617
Author: @frwbr
Created: 3/30/2026
Status: 🔄 Open
Base:
master← Head:dev/accept-user-bin-perl📝 Commits (1)
eba8188connect: interactive mode: also accept /usr/bin/perl as parent📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
bin/shell/connect.pl(+1 -1)📄 Description
When building a the-bastion Debian package with dh_perl, dh_perl may change the shebang of bin/shell/osh.pl from
to
This changes cmdline[0] from 'perl' to '/usr/bin/perl'. When trying to connect to a host in interactive mode, this then fails the security check for the parent process cmdline[0] in bin/shell/connect.pl, which only accepts 'perl' (not '/usr/bin/perl'). Thus, opening a connection in interactive mode fails with a security violation.
To avoid this, accept both 'perl' and '/usr/bin/perl' in bin/shell/connect.sh.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.