sys-apps/policycoreutils: update suid patch

Package-Manager: Portage-2.3.6, Repoman-2.3.1
This commit is contained in:
Jason Zaman
2017-07-09 17:49:32 +08:00
parent 9f2ed8eef4
commit 07f19bdf64
3 changed files with 15 additions and 2 deletions

View File

@@ -8,6 +8,6 @@ index bdefbb8..9cff135 100644
ifeq ($(IS_SUID),y)
- MODE := 4555
+ MODE := 0555
LDLIBS += -lcap-ng
override LDLIBS += -lcap-ng
else
MODE := 0555

View File

@@ -0,0 +1,13 @@
diff --git a/policycoreutils/newrole/Makefile b/policycoreutils/newrole/Makefile
index bdefbb8..9cff135 100644
--- policycoreutils/newrole/Makefile
+++ policycoreutils/newrole/Makefile
@@ -49,7 +49,7 @@ ifeq ($(NAMESPACE_PRIV),y)
IS_SUID=y
endif
ifeq ($(IS_SUID),y)
- MODE := 4555
+ MODE := 0555
LDLIBS += -lcap-ng
else
MODE := 0555

View File

@@ -83,7 +83,7 @@ src_prepare() {
cd "${S}" || die "Failed to switch to ${S}"
if [[ ${PV} != 9999 ]] ; then
# If needed for live ebuilds please use /etc/portage/patches
eapply "${FILESDIR}/policycoreutils-2.7-0001-newrole-not-suid.patch"
eapply "${FILESDIR}/policycoreutils-2.7_rc1-0001-newrole-not-suid.patch"
fi
# rlpkg is more useful than fixfiles