aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system/op.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/system/op.go')
-rw-r--r--internal/system/op.go6
1 files changed, 6 insertions, 0 deletions
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