]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonCommands: "smart" only needs read permission 30909/head 31111/head
authorKefu Chai <kchai@redhat.com>
Mon, 14 Oct 2019 13:32:04 +0000 (21:32 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 Oct 2019 07:40:01 +0000 (15:40 +0800)
Fixes: https://tracker.ceph.com/issues/42455
Signed-off-by: Kefu Chai <kchai@redhat.com>
Conflicts: this change is not cherry-picked from master, because in
master, we had a massive refactor in asok. see
https://github.com/ceph/ceph/pull/30859. and #30859 is not backported
to nautilus.

src/mon/MonCommands.h

index 81198af35e6e2d3b4bc43ce13ce1c64499bcb97b..7c13d936bb5552445e22423d8d18a13d0cac19ab 100644 (file)
@@ -1232,4 +1232,4 @@ COMMAND("config generate-minimal-conf",
 
 COMMAND_WITH_FLAG("smart name=devid,type=CephString,req=false",
                  "Query health metrics for underlying device",
-                 "mon", "rw", FLAG(HIDDEN))
+                 "mon", "r", FLAG(HIDDEN))