Disallow chmod and chown

This commit is contained in:
Tanner Collin 2017-10-09 23:10:10 -06:00
parent b23765b998
commit 2fe82ddf6f

View File

@ -116,10 +116,12 @@ class StandardNotesFUSE(LoggingMixIn, Operations):
return 0 return 0
def chmod(self, path, mode): def chmod(self, path, mode):
return 0 logging.error('chmod is disabled.')
raise FuseOSError(errno.EPERM)
def chown(self, path, uid, gid): def chown(self, path, uid, gid):
return 0 logging.error('chown is disabled.')
raise FuseOSError(errno.EPERM)
def destroy(self, path): def destroy(self, path):
return 0 return 0