From 38e92edb8efd7cc74031d013a13af5c1c8ddd284 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Fri, 6 Dec 2024 04:20:15 +0900 Subject: system/wayland: integrate security-context-v1 Had to pass the sync fd through sys. The rest are just part of a standard Op. Signed-off-by: Ophestra Umiker --- internal/system/op.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/system/op.go') diff --git a/internal/system/op.go b/internal/system/op.go index 7d293773..d2ca5dd7 100644 --- a/internal/system/op.go +++ b/internal/system/op.go @@ -2,6 +2,7 @@ package system import ( "errors" + "os" "sync" "git.ophivana.moe/security/fortify/internal/fmsg" @@ -56,6 +57,7 @@ func TypeString(e Enablement) string { type I struct { uid int ops []Op + sp *os.File state [2]bool lock sync.Mutex @@ -65,6 +67,10 @@ func (sys *I) UID() int { return sys.uid } +func (sys *I) Sync() *os.File { + return sys.sp +} + func (sys *I) Equal(v *I) bool { if v == nil || sys.uid != v.uid || len(sys.ops) != len(v.ops) { return false -- cgit v1.3.1