mirror of
https://github.com/criyle/go-sandbox.git
synced 2025-11-04 14:49:53 +08:00
fix arm64 compiler
This commit is contained in:
parent
c8940e7caa
commit
9f6081db9a
@ -91,7 +91,7 @@ func main() {
|
||||
|
||||
runner := &runprogram.RunProgram{
|
||||
Args: h.Args,
|
||||
Env: []string{"PATH=/"},
|
||||
Env: []string{"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"},
|
||||
WorkDir: workPath,
|
||||
RLimits: runprogram.RLimits{
|
||||
CPU: timeLimit,
|
||||
|
||||
@ -8,7 +8,9 @@ var (
|
||||
"/usr/lib/aarch64-linux-gnu/",
|
||||
}
|
||||
|
||||
archSyscallAllows = []string{}
|
||||
archSyscallAllows = []string{
|
||||
"newfstatat",
|
||||
}
|
||||
|
||||
archSyscallTraces = []string{}
|
||||
)
|
||||
|
||||
@ -79,7 +79,7 @@ func (h *tracerHandler) Handle(ctx *tracer.Context) tracer.TraceAction {
|
||||
|
||||
case "access":
|
||||
action = h.checkStat(ctx, ctx.Arg0())
|
||||
case "faccessat":
|
||||
case "faccessat", "newfstatat":
|
||||
action = h.checkStat(ctx, ctx.Arg1())
|
||||
|
||||
case "stat", "stat64":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user