From 2fe82ddf6f51c8e1a20c8261f346dbf605e265e1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 9 Oct 2017 23:10:10 -0600 Subject: [PATCH] Disallow chmod and chown --- sn_fuse.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sn_fuse.py b/sn_fuse.py index 7347b62..883f0e9 100644 --- a/sn_fuse.py +++ b/sn_fuse.py @@ -116,10 +116,12 @@ class StandardNotesFUSE(LoggingMixIn, Operations): return 0 def chmod(self, path, mode): - return 0 + logging.error('chmod is disabled.') + raise FuseOSError(errno.EPERM) def chown(self, path, uid, gid): - return 0 + logging.error('chown is disabled.') + raise FuseOSError(errno.EPERM) def destroy(self, path): return 0