summaryrefslogtreecommitdiffstats
path: root/back/cmd/authfs/sessdir.go
diff options
context:
space:
mode:
Diffstat (limited to 'back/cmd/authfs/sessdir.go')
-rw-r--r--back/cmd/authfs/sessdir.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/back/cmd/authfs/sessdir.go b/back/cmd/authfs/sessdir.go
index eafc92f..22d8202 100644
--- a/back/cmd/authfs/sessdir.go
+++ b/back/cmd/authfs/sessdir.go
@@ -72,3 +72,10 @@ func (dir *SessionsDir) Qid() (p9.QID, error) {
Path: sessionsQidPath,
}, nil
}
+
+func (dir *SessionsDir) Open(mode p9.Mode) error {
+ if mode&(p9.OEXEC|p9.OTRUNC|p9.ORCLOSE) != 0 {
+ return ErrPerm
+ }
+ return nil
+}