restorecond: add package 2.7 (20170804)

Move policycoreutils/restorecond to restorecond:

* Move and rebase patch:
  - policycoreutils-make-O_CLOEXEC-optional.patch

* Cleanup policycoreutils_2.7.bb.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>

Update policycoreutils_git.bb

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
This commit is contained in:
Wenzong Fan 2017-09-04 22:59:47 -07:00 committed by Mark Hatle
parent d8d6ac6a5d
commit 9a07ac8424
5 changed files with 39 additions and 6 deletions

View File

@ -8,7 +8,6 @@ SRC_URI[sha256sum] = "0a1b8a4a323b854981c6755ff025fe98a0f1cff307f109abb260f0490f
SRC_URI += "\
file://policycoreutils-fix-sepolicy-install-path.patch \
file://policycoreutils-make-O_CLOEXEC-optional.patch \
file://policycoreutils-loadpolicy-symlink.patch \
file://policycoreutils-process-ValueError-for-sepolicy-seobject.patch \
file://policycoreutils-fix-TypeError-for-seobject.py.patch \

View File

@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
SRC_URI += "\
file://policycoreutils-fix-sepolicy-install-path.patch \
file://policycoreutils-make-O_CLOEXEC-optional.patch \
file://policycoreutils-loadpolicy-symlink.patch \
file://policycoreutils-process-ValueError-for-sepolicy-seobject.patch \
file://policycoreutils-fix-TypeError-for-seobject.py.patch \

View File

@ -0,0 +1,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"

View File

@ -16,13 +16,13 @@ Uptream-Status: Inappropriate [O_CLOEXEC has been in Linux since 2007 and POSIX
Signed-off-by: Joe MacDonald <joe.macdonald@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
restorecond/user.c | 8 +++++++-
user.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/restorecond/user.c b/restorecond/user.c
diff --git a/user.c b/user.c
index 2c28676..6235772 100644
--- a/restorecond/user.c
+++ b/restorecond/user.c
--- a/user.c
+++ b/user.c
@@ -202,7 +202,13 @@ static int local_server() {
perror("asprintf");
return -1;

View File

@ -0,0 +1,7 @@
include selinux_20170804.inc
include ${BPN}.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
SRC_URI[md5sum] = "46f8ad0a37f955ef148d4e19b8cc8b1f"
SRC_URI[sha256sum] = "cb8e0a8d706cb2c1f105125f3514dffffefcbcfb49199183a7f91ab0bdf1f24d"