aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fpkg/with.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-04-08 01:59:45 +0900
committerOphestra <cat@gensokyo.uk>2025-04-08 01:59:45 +0900
commit584405f7ccd4c8c0e63762e113f4650f2abd469e (patch)
treef72d79d1a90e9bffe8f5c975e564ad40c602f2f7 /cmd/fpkg/with.go
parent50127ed5f9bc89f38c7d5d1aa06b4d99229b9c64 (diff)
sandbox/seccomp: rename flag type and constants
The names are ambiguous. Rename them to make more sense. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/with.go')
-rw-r--r--cmd/fpkg/with.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/fpkg/with.go b/cmd/fpkg/with.go
index f9ffe848..92c5ba9e 100644
--- a/cmd/fpkg/with.go
+++ b/cmd/fpkg/with.go
@@ -39,7 +39,7 @@ func withNixDaemon(
Hostname: formatHostname(app.Name) + "-" + action,
Userns: true, // nix sandbox requires userns
Net: net,
- Seccomp: seccomp.FlagMultiarch,
+ Seccomp: seccomp.FilterMultiarch,
Tty: dropShell,
Filesystem: []*fst.FilesystemConfig{
{Src: pathSet.nixPath, Dst: "/nix", Write: true, Must: true},
@@ -76,7 +76,7 @@ func withCacheDir(
Shell: shellPath,
Sandbox: &fst.SandboxConfig{
Hostname: formatHostname(app.Name) + "-" + action,
- Seccomp: seccomp.FlagMultiarch,
+ Seccomp: seccomp.FilterMultiarch,
Tty: dropShell,
Filesystem: []*fst.FilesystemConfig{
{Src: path.Join(workDir, "nix"), Dst: "/nix", Must: true},