Description of problem: When we add new bricks to an existing volume using add-brick command "glusterd_brick_t" SELinux context label is not assigned on those new brick paths. Version-Release number of selected component (if applicable): master How reproducible: Always Steps to Reproduce: 1. Create and start a basic distribute-replicate volume 2. Verify that brick paths have "glusted_brick_t" SELinux labels by running `ls -lZ <brick-path>` 3. Add new bricks to the existing volume 4. Check SELinux labels on newly added brick paths Actual results: "glusterd_brick_t" SELinux label is missing on newly added bricks Expected results: Following SELinux label is expected: system_u:object_r:glusterd_brick_t:s0
REVIEW: https://review.gluster.org/22834 (extras/hooks: Add SELinux label on new bricks during add-brick) posted (#1) for review on master by Anoop C S
REVIEW: https://review.gluster.org/22834 (extras/hooks: Add SELinux label on new bricks during add-brick) merged (#4) on master by Amar Tumballi
Re-opening as previous patch failed to install and package new hook script.
REVIEW: https://review.gluster.org/22856 (extras/hooks: Install and package newly added post add-brick hook script) posted (#1) for review on master by Anoop C S
REVIEW: https://review.gluster.org/22856 (extras/hooks: Install and package newly added post add-brick hook script) merged (#4) on master by Amar Tumballi