[Bugs] [Bug 1533342] New: Syntactical errors in hook scripts for managing SELinux context on bricks

bugzilla at redhat.com bugzilla at redhat.com
Thu Jan 11 06:04:11 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1533342

            Bug ID: 1533342
           Summary: Syntactical errors in hook scripts for managing
                    SELinux context on bricks
           Product: GlusterFS
           Version: mainline
         Component: scripts
          Severity: medium
          Assignee: bugs at gluster.org
          Reporter: anoopcs at redhat.com
                CC: bugs at gluster.org



Description of problem:
The sole purpose of S10selinux-label-brick.sh hook script is to set required
SELinux context on bricks after the volume is created. But the following error
is seen during its execution:

/var/lib/glusterd/hooks/1/create/post/S10selinux-label-brick.sh: line 46:
syntax error near unexpected token ('
/var/lib/glusterd/hooks/1/create/post/S10selinux-label-brick.sh: line 46:
semanage fcontext --add -t glusterd_brick_t -r s0 $b(/.*)?'

making it useless. Similar might be the case with S10selinux-del-fcontext.sh.

Version-Release number of selected component (if applicable):
master

How reproducible:
Always

Steps to Reproduce:
1. Try executing the mentioned hook script independently after creating the
volume.

Actual results:
Execution fails with error

Expected results:
Script must run successfully

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list