]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: disallow unprivileged users to escalate root privileges 63458/head
authorXiubo Li <xiubli@redhat.com>
Wed, 3 Apr 2024 11:02:08 +0000 (19:02 +0800)
committerVenky Shankar <vshankar@redhat.com>
Fri, 23 May 2025 13:11:32 +0000 (18:41 +0530)
commitf9220cc27bdf3b08cd1c1ee536cc9cd38a204b38
tree25641004325dfccdafe02dfd5e9442987b2d5e72
parent56b99960f1d5a9ff5786d9b24cea49d59b0434f9
client: disallow unprivileged users to escalate root privileges

An unprivileged user can `chmod 777` a directory owned by root
and gain access. Fix this bug and also add a test case for the
same.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit fb1b72d5cbfb285620a2ae632f1b4d75b8fb8336)
src/client/Client.cc
src/test/libcephfs/suidsgid.cc