]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: disallow unprivileged users to escalate root privileges 62025/head
authorXiubo Li <xiubli@redhat.com>
Wed, 3 Apr 2024 11:02:08 +0000 (19:02 +0800)
committerVenky Shankar <vshankar@redhat.com>
Thu, 8 May 2025 21:30:58 +0000 (03:00 +0530)
commitfb1b72d5cbfb285620a2ae632f1b4d75b8fb8336
tree6d842d2ab461effe604b85a62b615737d349cdba
parenta47177e46e52ceaee5f8903788978b040adf1c88
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>
src/client/Client.cc
src/test/libcephfs/suidsgid.cc