2017-10-18 00:32:18 +02:00
|
|
|
From a221304344b3f9db7e86d928cf97d77542bcf456 Mon Sep 17 00:00:00 2001
|
2019-07-01 18:30:29 +02:00
|
|
|
From: Adam Duskett <aduskett@gmail.com>
|
2017-10-18 00:32:18 +02:00
|
|
|
Date: Mon, 9 Oct 2017 16:47:19 -0400
|
2016-10-25 21:26:03 +02:00
|
|
|
Subject: [PATCH] Add PREFIX to host paths
|
|
|
|
|
|
|
|
Updates the remaining hardcoded host paths used in the build to be
|
|
|
|
prefixed with a PREFIX path to allow cross compilation.
|
|
|
|
|
|
|
|
Updated to work with version 2.5
|
|
|
|
|
|
|
|
Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
|
|
|
|
Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>
|
2019-07-01 18:30:29 +02:00
|
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
2018-10-11 21:37:05 +02:00
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
[Update for 2.8]
|
2016-10-25 21:26:03 +02:00
|
|
|
---
|
2017-10-18 00:32:18 +02:00
|
|
|
load_policy/Makefile | 2 +-
|
|
|
|
newrole/Makefile | 6 +++---
|
|
|
|
run_init/Makefile | 6 +++---
|
|
|
|
3 files changed, 7 insertions(+), 7 deletions(-)
|
2016-10-25 21:26:03 +02:00
|
|
|
|
|
|
|
diff --git a/newrole/Makefile b/newrole/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
index 196af92..896708f 100644
|
2016-10-25 21:26:03 +02:00
|
|
|
--- a/newrole/Makefile
|
|
|
|
+++ b/newrole/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
@@ -3,9 +3,9 @@ PREFIX ?= $(DESTDIR)/usr
|
2016-10-25 21:26:03 +02:00
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2018-10-11 21:37:05 +02:00
|
|
|
ETCDIR ?= /etc
|
|
|
|
LOCALEDIR = $(DESTDIR)$(PREFIX)/share/locale
|
2017-10-18 00:32:18 +02:00
|
|
|
-PAMH ?= $(shell test -f /usr/include/security/pam_appl.h && echo y)
|
|
|
|
-AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
|
2018-10-11 21:37:05 +02:00
|
|
|
+PAMH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/security/pam_appl.h && echo y)
|
|
|
|
+AUDITH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/libaudit.h && echo y)
|
2016-10-25 21:26:03 +02:00
|
|
|
# Enable capabilities to permit newrole to generate audit records.
|
2017-10-18 00:32:18 +02:00
|
|
|
# This will make newrole a setuid root program.
|
|
|
|
# The capabilities used are: CAP_AUDIT_WRITE.
|
2016-10-25 21:26:03 +02:00
|
|
|
diff --git a/run_init/Makefile b/run_init/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
index 921f0b0..e1566fc 100644
|
2016-10-25 21:26:03 +02:00
|
|
|
--- a/run_init/Makefile
|
|
|
|
+++ b/run_init/Makefile
|
2017-10-18 00:32:18 +02:00
|
|
|
@@ -4,9 +4,9 @@ PREFIX ?= $(DESTDIR)/usr
|
2016-10-25 21:26:03 +02:00
|
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
2018-10-11 21:37:05 +02:00
|
|
|
ETCDIR ?= /etc
|
|
|
|
LOCALEDIR ?= $(DESTDIR)$(PREFIX)/share/locale
|
2017-10-18 00:32:18 +02:00
|
|
|
-PAMH ?= $(shell test -f /usr/include/security/pam_appl.h && echo y)
|
|
|
|
-AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
|
2018-10-11 21:37:05 +02:00
|
|
|
+PAMH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/security/pam_appl.h && echo y)
|
|
|
|
+AUDITH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/libaudit.h && echo y)
|
2016-10-25 21:26:03 +02:00
|
|
|
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
2017-10-18 00:32:18 +02:00
|
|
|
override CFLAGS += -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
|
2016-10-25 21:26:03 +02:00
|
|
|
--
|
2017-10-18 00:32:18 +02:00
|
|
|
2.13.6
|
2016-10-25 21:26:03 +02:00
|
|
|
|