Switch to execabs for os/exec in connect cmd (#873)

* Switch to execabs for os/exec in connect cmd

This is more of an abundance-of-caution change (e.g. defense in depth)
but it doesn't seem like we should be using binaries from the current
directory for `boundary connect` executions (unless given an explicit
path).

* Update changelog
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-01-20 12:09:55 -05:00
1 parent dcb15cffbd
commit 46644300d9
4 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -13,13 +13,13 @@ import (
"net"
"net/http"
"os"
"os/exec"
"strconv"
"strings"
"sync"
"syscall"
"time"
exec "golang.org/x/sys/execabs"
"github.com/hashicorp/boundary/api"
"github.com/hashicorp/boundary/api/targets"
"github.com/hashicorp/boundary/globals"