fix: reject reparse-point shell paths
This commit is contained in:
@@ -257,7 +257,7 @@ func osProcess(pid uint32) *os.Process {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func verifyExecutable(path string) error {
|
func verifyExecutable(path string) error {
|
||||||
info, err := os.Stat(path)
|
info, err := os.Lstat(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("stat configured shell %q: %w", path, err)
|
return fmt.Errorf("stat configured shell %q: %w", path, err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user