Defined Type: selinux::fcontext::equivalence
- Defined in:
-
manifests/fcontext/equivalence.pp
Summary
Manage SELinux fcontext equivalences
Overview
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'manifests/fcontext/equivalence.pp', line 13
define selinux::fcontext::equivalence (
String $target,
String $path = $title,
Enum['present', 'absent'] $ensure = 'present'
) {
include selinux
if $ensure == 'present' {
Anchor['selinux::module post']
-> Selinux::Fcontext::Equivalence[$title]
-> Anchor['selinux::end']
} else {
Anchor['selinux::start']
-> Selinux::Fcontext::Equivalence[$title]
-> Anchor['selinux::module pre']
}
if $facts['os']['selinux']['enabled'] {
selinux_fcontext_equivalence { $path:
ensure => $ensure,
target => $target,
}
}
}
|