From f0c46df09fe542d6a365adc0c544ba460598501c Mon Sep 17 00:00:00 2001 From: Jiffin Tony Thottan Date: Wed, 12 Dec 2018 12:10:44 +0530 Subject: selinux/glusterd : add "features.selinux" to glusterd-volume-set.c Fixes: bz#1659868 Change-Id: I38675ba4d47c8ba7f94cfb4734692683ddb3dcfd Signed-off-by: Jiffin Tony Thottan --- xlators/mgmt/glusterd/src/glusterd-volume-set.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 39e31a295da..755c13ed29a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2850,6 +2850,15 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "cluster/replicate", .op_version = GD_OP_VERSION_3_11_0, .flags = VOLOPT_FLAG_CLIENT_OPT}, + {.key = VKEY_FEATURES_SELINUX, + .voltype = "features/selinux", + .type = NO_DOC, + .value = "on", + .op_version = GD_OP_VERSION_3_11_0, + .description = "Convert security.selinux xattrs to " + "trusted.gluster.selinux on the bricks. Recommended " + "to have enabled when clients and/or bricks support " + "SELinux."}, {.key = GLUSTERD_LOCALTIME_LOGGING_KEY, .voltype = "mgmt/glusterd", .type = GLOBAL_DOC, -- cgit