From: Kefu Chai Date: Mon, 14 Oct 2019 13:32:04 +0000 (+0800) Subject: mon/MonCommands: "smart" only needs read permission X-Git-Tag: v14.2.5~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31111%2Fhead;p=ceph.git mon/MonCommands: "smart" only needs read permission Fixes: https://tracker.ceph.com/issues/42455 Signed-off-by: Kefu Chai 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. --- diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 81198af35e6e..7c13d936bb55 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -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))