1
0
forked from rosa/hakurei

cmd/app: exclude /tmp/ for X11 pathname socket

This would otherwise cover the pathname socket.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-24 08:49:16 +09:00
parent e5ce36532b
commit 2a51b433c8
+4 -1
View File
@@ -309,7 +309,10 @@ func parse(
c.SystemBus = nil c.SystemBus = nil
} }
if c.Container.Flags&hst.FShareTmpdir == 0 { if c.Container.Flags&hst.FShareTmpdir == 0 &&
(c.Enablements.Unwrap()&hst.EX11 == 0 ||
c.Container.Flags&(hst.FHostNet|hst.FHostAbstract) ==
hst.FHostNet|hst.FHostAbstract) {
c.Container.Filesystem = append(c.Container.Filesystem, c.Container.Filesystem = append(c.Container.Filesystem,
hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSEphemeral{ hst.FilesystemConfigJSON{FilesystemConfig: &hst.FSEphemeral{
Target: fhs.AbsTmp, Target: fhs.AbsTmp,