]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: disallow unprivileged users to escalate root privileges 61379/head
authorXiubo Li <xiubli@redhat.com>
Wed, 3 Apr 2024 11:02:08 +0000 (19:02 +0800)
committerVenky Shankar <vshankar@redhat.com>
Wed, 15 Jan 2025 04:38:56 +0000 (10:08 +0530)
commitd19668a519cd98d429d2ef547de7acd48f75f99a
tree4a45d896489f40467ed8a3aa063b3bdc277f3dfc
parent8a122fae8547c61c9f4fd37c87e89fac461e3e71
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