From 15846cbccf63a4e74cce5b8cf0c1931fdcf81ccd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 15 May 2024 15:17:16 +0200 Subject: pkg/ipc: use flatrpc flags Flatrpc flags are passed in RPC execution requests, so to avoid conversions and duplicate set of flags use flatrpc flags in pkg/ipc directly. --- pkg/vminfo/syscalls.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/vminfo/syscalls.go') diff --git a/pkg/vminfo/syscalls.go b/pkg/vminfo/syscalls.go index 1e9714c9b..f6ab24a04 100644 --- a/pkg/vminfo/syscalls.go +++ b/pkg/vminfo/syscalls.go @@ -33,7 +33,7 @@ type checkContext struct { impl checker cfg *mgrconfig.Config target *prog.Target - sandbox ipc.EnvFlags + sandbox flatrpc.ExecEnv executor queue.Executor fs filesystem // Once checking of a syscall is finished, the result is sent to syscalls. @@ -222,7 +222,7 @@ func (ctx *checkContext) onlySandboxNone() string { } func (ctx *checkContext) onlySandboxNoneOrNamespace() string { - if ctx.sandbox != 0 && ctx.sandbox != ipc.FlagSandboxNamespace { + if ctx.sandbox != 0 && ctx.sandbox != flatrpc.ExecEnvSandboxNamespace { return "only supported under root with sandbox=none/namespace" } return "" -- cgit mrf-deployment