Skip to content

Commit

Permalink
gosh_store: allow fstatat Linux syscall
Browse files Browse the repository at this point in the history
Seems like on aarch64 newfstatat is identical to fstat. However, due to
too many indirections, newfstatat is unknown somewhere in between and
cannot be allowed despite being part of @System-service.

Reported and discussed in #63.
  • Loading branch information
oxzi committed Oct 16, 2024
1 parent b4997cb commit c55f4fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gosh_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func mainStore(conf Config) {
"~@swap",
/* @process */ "~execve", "~execveat", "~fork", "~kill",
/* @network-io */ "~bind", "~connect", "~listen",
"fstatat", // for aarch64, same as newfstatat
})
if err != nil {
slog.Error("Failed to apply seccomp-bpf filter", slog.Any("error", err))
Expand Down

0 comments on commit c55f4fa

Please sign in to comment.