summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiffin Tony Thottan <jthottan@redhat.com>2018-12-12 12:10:44 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-12-17 06:45:46 +0000
commitf0c46df09fe542d6a365adc0c544ba460598501c (patch)
tree0e51987d8d39d3481986c830feeaa45748c867e9
parent152907d438bf8bb571e43ec278ec7b01da2431a6 (diff)
selinux/glusterd : add "features.selinux" to glusterd-volume-set.c
Fixes: bz#1659868 Change-Id: I38675ba4d47c8ba7f94cfb4734692683ddb3dcfd Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c9
1 files changed, 9 insertions, 0 deletions
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,