Message ID | 20200901161641.431740-1-dominick.grift@defensec.nl (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | newrole: support cross-compilation with PAM and audit | expand |
On Tue, Sep 1, 2020 at 12:17 PM Dominick Grift <dominick.grift@defensec.nl> wrote: > > Compilation of newrole with PAM and audit support currently requires that you have the respective headers installed on the host. Instead make the header location customizable to accomodate cross-compilation. > > Signed-off-by: Dominick Grift <dominick.grift@defensec.nl> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
On Thu, Sep 3, 2020 at 10:22 AM Stephen Smalley <stephen.smalley.work@gmail.com> wrote: > > On Tue, Sep 1, 2020 at 12:17 PM Dominick Grift > <dominick.grift@defensec.nl> wrote: > > > > Compilation of newrole with PAM and audit support currently requires that you have the respective headers installed on the host. Instead make the header location customizable to accomodate cross-compilation. > > > > Signed-off-by: Dominick Grift <dominick.grift@defensec.nl> > > Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com> Applied.
diff --git a/policycoreutils/newrole/Makefile b/policycoreutils/newrole/Makefile index 73ebd413..0e7ebce3 100644 --- a/policycoreutils/newrole/Makefile +++ b/policycoreutils/newrole/Makefile @@ -5,8 +5,9 @@ BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man ETCDIR ?= /etc LOCALEDIR = $(DESTDIR)$(PREFIX)/share/locale -PAMH ?= $(shell test -f /usr/include/security/pam_appl.h && echo y) -AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y) +INCLUDEDIR ?= $(PREFIX)/include +PAMH ?= $(shell test -f $(INCLUDEDIR)/security/pam_appl.h && echo y) +AUDITH ?= $(shell test -f $(INCLUDEDIR)/libaudit.h && echo y) # Enable capabilities to permit newrole to generate audit records. # This will make newrole a setuid root program. # The capabilities used are: CAP_AUDIT_WRITE.
Compilation of newrole with PAM and audit support currently requires that you have the respective headers installed on the host. Instead make the header location customizable to accomodate cross-compilation. Signed-off-by: Dominick Grift <dominick.grift@defensec.nl> --- policycoreutils/newrole/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)