diff options
Diffstat (limited to 'recipes-security/selinux/restorecond.inc')
| -rw-r--r-- | recipes-security/selinux/restorecond.inc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/selinux/restorecond.inc b/recipes-security/selinux/restorecond.inc new file mode 100644 index 0000000..6f12d23 --- /dev/null +++ b/recipes-security/selinux/restorecond.inc | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | SUMMARY = "Daemon to watch for file creation and set default file context" | ||
| 2 | DESCRIPTION = "\ | ||
| 3 | The restorecond daemon uses inotify to watch files listed in the \ | ||
| 4 | /etc/selinux/restorecond.conf, when they are created, this daemon \ | ||
| 5 | will make sure they have the correct file context associated with \ | ||
| 6 | the policy." | ||
| 7 | |||
| 8 | SECTION = "base" | ||
| 9 | LICENSE = "GPLv2+" | ||
| 10 | |||
| 11 | SRC_URI += "file://policycoreutils-make-O_CLOEXEC-optional.patch \ | ||
| 12 | " | ||
| 13 | |||
| 14 | inherit systemd update-rc.d | ||
| 15 | |||
| 16 | DEPENDS += "libsepol libselinux libpcre dbus-glib glib-2.0 pkgconfig-native" | ||
| 17 | |||
| 18 | FILES_${PN} += "${datadir}/dbus-1/services/org.selinux.Restorecond.service \ | ||
| 19 | " | ||
| 20 | |||
| 21 | do_install_prepend() { | ||
| 22 | export SYSTEMDDIR=${D}/${systemd_unitdir} | ||
| 23 | } | ||
| 24 | |||
| 25 | SYSTEMD_SERVICE_restorecond = "restorecond.service" | ||
| 26 | INITSCRIPT_PACKAGES = "restorecond" | ||
| 27 | INITSCRIPT_NAME_restorecond = "restorecond" | ||
| 28 | INITSCRIPT_PARAMS_restorecond = "defaults" | ||
