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