DynamoFS icon indicating copy to clipboard operation
DynamoFS copied to clipboard

#6 chown 07 conflicts with chown 05

Open denismo opened this issue 11 years ago • 2 comments

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

denismo avatar Jul 20 '13 02:07 denismo

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)

denismo avatar Jul 20 '13 04:07 denismo

In case of an error, the values are like this: ouid - 65533 uid - 65534 st_uid - 65534

denismo avatar Jul 20 '13 04:07 denismo