]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
client: disallow unprivileged users to escalate root privileges
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 12:35:16 +0000 (18:05 +0530)
commit730b6bc23fd15c2cd28502f16d852ff00b04c466
tree6755e8f3a7c321386475dcb0d8352a3c1111c4bb
parent6af7c16eb2c3de0d84d2a2bfff7618c65df40b81
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