Fixed SELinux file context checking on RHEL hosts.
This commit is contained in:
parent
80422d9aa7
commit
c27cf52ba9
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ define selinux::manage_fcontext($type) {
|
|||
|
||||
exec { "semanage fcontext -a -t '${type}' '${name}' && restorecon -R `echo '${name}' | sed -e 's/(.*$//'`":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//'` | egrep -q ':${type}:'",
|
||||
unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//'` | egrep -q ':${type}(:s[0-9]*)?$'",
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue