DynamoFS
DynamoFS copied to clipboard
#6 chown 07 conflicts with chown 05
This is to do with permitPrivilegedOnly. On one hand, one test executes chown under unprivileged user without changing ownership but expects EPERM. On the other hand, other test expects not to get EPERM is ownership does not change
The current behavior seems to be the most stable as it does not cause other tests to fail:
def permitPrivilegedOnly(self, block, uid, gid):
(ouid, unused, unused) = fuse_get_context()
if ouid and not (uid == -1 or uid == block['st_uid']):
self.log.debug('permitPrivilegedOnly: owner is not privileged %d => %d, owner %d', block['st_uid'], uid, ouid)
raise FuseOSError(EPERM)
In case of an error, the values are like this: ouid - 65533 uid - 65534 st_uid - 65534