]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: set CEPH_SETATTR_KILL_SGUID on truncate 12412/head
authorJeff Layton <jlayton@redhat.com>
Thu, 8 Dec 2016 15:10:07 +0000 (10:10 -0500)
committerJeff Layton <jlayton@redhat.com>
Thu, 8 Dec 2016 21:17:08 +0000 (16:17 -0500)
commit03076a6924a7f82e33c7b2434a6cd367290884b7
tree8362fc9a46a071a5f11aa102662389f41bd264e0
parent2d1c91f490331492cd9195bc63ca49eae545bbbf
client: set CEPH_SETATTR_KILL_SGUID on truncate

On a size change, try to clobber the S_ISUID and S_ISGID bits if we
have Ax caps. If we don't have them, then ask the server to do it
for us using CEPH_SETATTR_KILL_SGUID.

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