aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-01-19 18:38:13 +0900
committerOphestra <cat@gensokyo.uk>2025-01-19 18:38:13 +0900
commit2f705068658bf9c47a5fa829105111e46a7732a0 (patch)
tree4f75a66cb84cf5452c865afbdb9784adfded79b3 /ldd
parentcae567c1090ef12e9837f7dec4f43d030ec8f6b2 (diff)
helper/bwrap: move sync to helper state
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/ldd/exec.go b/ldd/exec.go
index 0c049e70..eec31e47 100644
--- a/ldd/exec.go
+++ b/ldd/exec.go
@@ -16,13 +16,15 @@ func Exec(p string) ([]*Entry, error) {
cmd *exec.Cmd
)
- if b, err := helper.NewBwrap((&bwrap.Config{
- Hostname: "fortify-ldd",
- Chdir: "/",
- NewSession: true,
- DieWithParent: true,
- }).Bind("/", "/").DevTmpfs("/dev"),
- nil, "ldd", func(_, _ int) []string { return []string{p} }); err != nil {
+ if b, err := helper.NewBwrap(
+ (&bwrap.Config{
+ Hostname: "fortify-ldd",
+ Chdir: "/",
+ NewSession: true,
+ DieWithParent: true,
+ }).Bind("/", "/").DevTmpfs("/dev"), "ldd",
+ nil, func(_, _ int) []string { return []string{p} }, nil,
+ ); err != nil {
return nil, err
} else {
cmd = b.Unwrap()