summaryrefslogtreecommitdiffstats
path: root/back/cmd/authfs/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'back/cmd/authfs/root.go')
-rw-r--r--back/cmd/authfs/root.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/back/cmd/authfs/root.go b/back/cmd/authfs/root.go
index 5d56045..7a0fcbd 100644
--- a/back/cmd/authfs/root.go
+++ b/back/cmd/authfs/root.go
@@ -29,3 +29,10 @@ func (r *RootDir) Qid() (p9.QID, error) {
Path: rootQidPath,
}, nil
}
+
+func (r *RootDir) Open(mode p9.Mode) error {
+ if mode != p9.OREAD {
+ return ErrPerm
+ }
+ return nil
+}