From: Mohamad Gebai Date: Wed, 10 Oct 2018 15:41:21 +0000 (-0400) Subject: osd: make 'cache drop' command require 'executable' permission X-Git-Tag: v14.0.1~56^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F24270%2Fhead;p=ceph.git osd: make 'cache drop' command require 'executable' permission Signed-off-by: Mohamad Gebai --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 79eb1ec2311a..330a69f9699c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -6022,7 +6022,7 @@ COMMAND("smart name=devid,type=CephString,req=False", "osd", "rw", "cli,rest") COMMAND("cache drop", "Drop all OSD caches", - "osd", "rw", "cli,rest") + "osd", "rwx", "cli,rest") COMMAND("cache status", "Get OSD caches statistics", "osd", "r", "cli,rest")