Ugly kludge to selinux::manage_fcontext to handle paths with escaped characters.
This commit is contained in:
parent
04990fc910
commit
78bcee9a50
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ define selinux::manage_fcontext($type, $recurse = true) {
|
|||
|
||||
exec { "semanage fcontext -a -t '${type}' '${name}'":
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//'` | egrep -q ':${type}(:s[0-9]*)?$'",
|
||||
unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//' -e 's/\\\\\//g'` | egrep -q ':${type}(:s[0-9]*)?$'",
|
||||
notify => Exec["restorecon ${name}"],
|
||||
require => Class["selinux::tools"],
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue