[Bugs] [Bug 1542072] New: Syntactical errors in hook scripts for managing SELinux context on bricks #2 (S10selinux-label-brick.sh + S10selinux-del-fcontext.sh)
bugzilla at redhat.com
bugzilla at redhat.com
Mon Feb 5 13:49:49 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1542072
Bug ID: 1542072
Summary: Syntactical errors in hook scripts for managing
SELinux context on bricks #2
(S10selinux-label-brick.sh +
S10selinux-del-fcontext.sh)
Product: GlusterFS
Version: mainline
Component: scripts
Severity: medium
Assignee: bugs at gluster.org
Reporter: mzink at redhat.com
CC: bugs at gluster.org
Description of problem:
* Syntax errors similar as in Bug 1533342 - post/S10selinux-label-brick.sh
* Fix globbing problem when using grep for brick info files in both scripts
Version-Release number of selected component (if applicable):
How reproducible:
Run scripts from commandline
Steps to Reproduce:
1. /var/lib/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh --volname
vol050-vg10
2. /var/lib/glusterd/hooks/1/create/post/S10selinux-label-brick.sh --volname
vol050-vg10
Actual results:
1. ValueError: File context for /rhgs/vol050-vg10/brick01/fs(/.*)? is not
defined
2. grep: /var/lib/glusterd/vols/vol050-vg10/bricks/*: No such file or directory
Expected results:
# /var/lib/glusterd/hooks/1/create/post/S10selinux-label-brick.sh --volname
vol050-vg10
# semanage fcontext --list | grep rhgs
/rhgs(/.*)? all files
system_u:object_r:glusterd_brick_t:s0
/rhgs/vol050-vg10/brick01/fs\(/.*\)? all files
system_u:object_r:glusterd_brick_t:s0
# /var/lib/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh --volname
vol050-vg10
# semanage fcontext --list | grep rhgs
/rhgs(/.*)? all files
system_u:object_r:glusterd_brick_t:s0
--
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