]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: drop setuid/setgid bits on ownership change 12331/head
authorJeff Layton <jlayton@redhat.com>
Mon, 5 Dec 2016 19:11:44 +0000 (14:11 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 7 Dec 2016 17:10:56 +0000 (12:10 -0500)
commit18d2499d6c85a10b4b54f3b8c335cddf86c4588f
tree09111c436151e4be7a5abbe5e62719d726cc78e0
parent6da72500882d9749cb2be6eaa2568e6fe6e5ff4d
client: drop setuid/setgid bits on ownership change

When we hold exclusive auth caps, then the client is responsible for
handling changes to the mode. Make sure we remove any setuid/setgid
bits on an ownership change.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc