From 662f2a9d2cea3f462cf5b508b3719d4d7a722146 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 11 Oct 2024 04:18:15 +0900 Subject: app: integrate bwrap into environment setup Signed-off-by: Ophestra Umiker --- internal/app/share.dbus.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'internal/app/share.dbus.go') diff --git a/internal/app/share.dbus.go b/internal/app/share.dbus.go index 468a8afa..804dbd3f 100644 --- a/internal/app/share.dbus.go +++ b/internal/app/share.dbus.go @@ -63,10 +63,14 @@ func (seal *appSeal) shareDBus(config [2]*dbus.Config) error { seal.sys.dbusAddr = &[2][2]string{sessionBus, systemBus} // share proxy sockets - seal.appendEnv(dbusSessionBusAddress, "unix:path="+sessionBus[1]) + sessionInner := path.Join(seal.sys.runtime, "bus") + seal.sys.setEnv(dbusSessionBusAddress, "unix:path="+sessionInner) + seal.sys.bind(sessionBus[1], sessionInner, true) seal.sys.updatePerm(sessionBus[1], acl.Read, acl.Write) if seal.sys.dbusSystem { - seal.appendEnv(dbusSystemBusAddress, "unix:path="+systemBus[1]) + systemInner := "/run/dbus/system_bus_socket" + seal.sys.setEnv(dbusSystemBusAddress, "unix:path="+systemInner) + seal.sys.bind(systemBus[1], systemInner, true) seal.sys.updatePerm(systemBus[1], acl.Read, acl.Write) } -- cgit v1.3.1