selinux: Fix for string escape
This commit is contained in:
parent
e72661063c
commit
d7ff4cafbc
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}'":
|
exec { "semanage fcontext -a -t '${type}' '${name}'":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
unless => "matchpathcon `echo '${name}' | sed -e 's/(.*$//' -e 's/\\\\\//g'` | 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}"],
|
notify => Exec["restorecon ${name}"],
|
||||||
require => Class["selinux::tools"],
|
require => Class["selinux::tools"],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue