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