diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-11 04:18:15 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-11 04:18:15 +0900 |
| commit | 662f2a9d2cea3f462cf5b508b3719d4d7a722146 (patch) | |
| tree | b1b1deedeeb22c3d09e600f87496cba107cfc939 /internal/app/share.dbus.go | |
| parent | 3ddfd76cdf82475a3600f8e1c835bf3529ea6a31 (diff) | |
app: integrate bwrap into environment setup
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/share.dbus.go')
| -rw-r--r-- | internal/app/share.dbus.go | 8 |
1 files changed, 6 insertions, 2 deletions
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) } |
