Skip to content

Commit

Permalink
chore: Fix linux tracing in commandrun.
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Glastra <matglas.git@gmail.com>
  • Loading branch information
matglas committed Oct 2, 2024
1 parent 92968d0 commit 3ddeab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attestation/commandrun/tracing_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (p *ptraceContext) handleSyscall(pid int, regs unix.PtraceRegs) error {
if err == nil {
allVars := strings.Split(string(environ), "\x00")
filteredEnviron := make([]string, 0)
environment.FilterEnvironmentArray(allVars, p.environmentBlockList, func(_, _, varStr string) {
environment.FilterEnvironmentArray(allVars, p.environmentBlockList, map[string]struct{}{}, func(_, _, varStr string) {
filteredEnviron = append(filteredEnviron, varStr)
})

Expand Down

0 comments on commit 3ddeab5

Please sign in to comment.