diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-02 04:38:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-02 04:47:13 +0900 |
| commit | 31aef905fa819310ee7694775a836c294ff742e4 (patch) | |
| tree | 168eb9f598d2cbb46695d2c3e9864cb9ba8d76c6 /sandbox/ops.go | |
| parent | a6887f7253ae822357f0d4d019675acc8c3e0b4d (diff) | |
sandbox: expose seccomp interface
There's no point in artificially limiting and abstracting away these options. The higher level hakurei package is responsible for providing a secure baseline and sane defaults. The sandbox package should present everything to the caller.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/ops.go')
| -rw-r--r-- | sandbox/ops.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/ops.go b/sandbox/ops.go index 5226c7ad..016b2657 100644 --- a/sandbox/ops.go +++ b/sandbox/ops.go @@ -205,7 +205,7 @@ func (d MountDevOp) apply(params *Params) error { fmt.Sprintf("cannot mount devpts on %q:", devPtsPath)) } - if params.Flags&FAllowTTY != 0 { + if params.RetainSession { var buf [8]byte if _, _, errno := Syscall(SYS_IOCTL, 1, TIOCGWINSZ, uintptr(unsafe.Pointer(&buf[0]))); errno == 0 { consolePath := toSysroot(path.Join(v, "console")) |
