diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-17 13:24:17 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-17 13:24:17 +0900 |
| commit | 3ae2ab652e9cd1d6250dbde8ae0f9b9fe90afc72 (patch) | |
| tree | 52b0cf50658f4a7ea8606db3174d4f250e6a3cad /internal/system/op.go | |
| parent | db71fbe22bea41e92b9a037a2b608a3350097f5f (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/system/op.go')
| -rw-r--r-- | internal/system/op.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/system/op.go b/internal/system/op.go index 08b57946..42f93d43 100644 --- a/internal/system/op.go +++ b/internal/system/op.go @@ -4,7 +4,6 @@ import ( "context" "errors" "log" - "os" "sync" "git.gensokyo.uk/security/fortify/internal/fmsg" @@ -60,8 +59,6 @@ type I struct { uid int ops []Op ctx context.Context - // sync fd passed to bwrap - sp *os.File // whether sys has been reverted state bool @@ -73,10 +70,6 @@ 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 |
