]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: drop setuid/setgid bits on ownership change
authorJeff Layton <jlayton@redhat.com>
Tue, 20 Dec 2016 13:17:21 +0000 (08:17 -0500)
committerJeff Layton <jlayton@redhat.com>
Tue, 20 Dec 2016 13:25:39 +0000 (08:25 -0500)
commita0ae9a83df222fce75f41d3b5a3e3d0396dd748a
treea07bbde87024c3d6f3c722893c892724a794ae82
parentd49e628361a17cca65f31f85350468228a0ec2d7
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>
(cherry picked from commit 18d2499d6c85a10b4b54f3b8c335cddf86c4588f)
src/client/Client.cc