Skip to content

Commit

Permalink
fix: remove accidentally added broken seccomp debug ingo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Aug 21, 2023
1 parent 210eb3e commit 5fafc5f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.8.7

- remove broken seccomp stuff from extruntime.LogRuntimeInformation

## 1.8.6

- add LogRuntimeInformation
Expand Down
1 change: 0 additions & 1 deletion extruntime/extruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ func LogRuntimeInformation(level zerolog.Level) {
log.WithLevel(level).Msgf("Go Runtime information: os=%s; arch=%s", runtime.GOOS, runtime.GOARCH)
log.WithLevel(level).Msgf("Process information: pid=%d; uid=%d; gid=%d", os.Getpid(), os.Getuid(), os.Getgid())
logCapsInformation(level)
logSeccompInformation(level)
}
3 changes: 0 additions & 3 deletions extruntime/extruntime_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,3 @@ import (

func logCapsInformation(_ zerolog.Level) {
}

func logSeccompInformation(_ zerolog.Level) {
}
22 changes: 0 additions & 22 deletions extruntime/extruntime_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package extruntime
import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/seccomp/libseccomp-golang"
"os"
"os/exec"
"strconv"
Expand All @@ -19,24 +18,3 @@ func logCapsInformation(level zerolog.Level) {
log.WithLevel(level).Msgf("Process capabilities: %s", err)
}
}
func logSeccompInformation(level zerolog.Level) {
ctx, err := seccomp.NewContext(seccomp.ActLog)
if err != nil {
log.WithLevel(level).Msgf("Seccomp: %s", err)
return
}
defer ctx.Release()

if err := ctx.Load(); err != nil {
log.WithLevel(level).Msgf("Seccomp: %s", err)
return
}

mode, err := ctx.GetMode()
if err != nil {
log.WithLevel(level).Msgf("Seccomp: %s", err)
return
}

log.WithLevel(level).Msgf("Seccomp: mode=%s", err)
}

0 comments on commit 5fafc5f

Please sign in to comment.