]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: disallow unprivileged users to escalate root privileges 60314/head
authorXiubo Li <xiubli@redhat.com>
Wed, 3 Apr 2024 11:02:08 +0000 (19:02 +0800)
committerVenky Shankar <vshankar@redhat.com>
Tue, 15 Oct 2024 08:14:54 +0000 (13:44 +0530)
commitb6d85b595ea7c9e0fca10d5e77a48102110fe22c
treed50c309c1a3031c98c6c9bdcfbc8f17cab7fe3c6
parent0e599738e7cb9d1b67f4c02531bb44041068f0e4
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