From 3ae2ab652e9cd1d6250dbde8ae0f9b9fe90afc72 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Feb 2025 13:24:17 +0900 Subject: system/wayland: sync file at caller specified address Storing this in sys is incredibly ugly: sys should be stateless and Ops must keep track of their state. Signed-off-by: Ophestra --- internal/app/system.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/app/system.go') diff --git a/internal/app/system.go b/internal/app/system.go index 241eafa5..f11efc86 100644 --- a/internal/app/system.go +++ b/internal/app/system.go @@ -1,6 +1,8 @@ package app import ( + "os" + "git.gensokyo.uk/security/fortify/helper/bwrap" "git.gensokyo.uk/security/fortify/internal/system" ) @@ -8,6 +10,8 @@ import ( // appSealSys encapsulates app seal behaviour with OS interactions type appSealSys struct { bwrap *bwrap.Config + // bwrap sync fd + sp *os.File // paths to override by mounting tmpfs over them override []string -- cgit v1.3.1