From 67d907efc878b29123a8756ab35141c4c4fdab6f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 14 Oct 2019 21:32:04 +0800 Subject: [PATCH] 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. --- src/mon/MonCommands.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 81198af35e6e2..7c13d936bb555 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)) -- 2.39.5