diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-12-06 16:05:04 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-12-06 16:05:04 +0900 |
| commit | cc816a1aaa34946456c0a10ec6f001f865bc69f9 (patch) | |
| tree | fd94abb9ff5fee7cf24ea82a4558ff6dd82ea443 /helper/bwrap.go | |
| parent | b3ef53b193bdf764d8f04e19ea47901b71eec10b (diff) | |
proc: cleaner extra files
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/bwrap.go')
| -rw-r--r-- | helper/bwrap.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/bwrap.go b/helper/bwrap.go index 2788dbf9..5b674b49 100644 --- a/helper/bwrap.go +++ b/helper/bwrap.go @@ -9,6 +9,7 @@ import ( "sync" "git.ophivana.moe/security/fortify/helper/bwrap" + "git.ophivana.moe/security/fortify/internal/proc" ) // BubblewrapName is the file name or path to bubblewrap. @@ -76,8 +77,7 @@ func (b *bubblewrap) StartNotify(ready chan error) error { } if b.sync != nil { - b.Cmd.Args = append(b.Cmd.Args, "--sync-fd", strconv.Itoa(3+len(b.Cmd.ExtraFiles))) - b.Cmd.ExtraFiles = append(b.Cmd.ExtraFiles, b.sync) + b.Cmd.Args = append(b.Cmd.Args, "--sync-fd", strconv.Itoa(int(proc.ExtraFile(b.Cmd, b.sync)))) } if err := b.Cmd.Start(); err != nil { |
