summaryrefslogtreecommitdiffstats
path: root/etc/Makefile
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2006-02-02 10:03:43 +0000
committerrwatson <rwatson@FreeBSD.org>2006-02-02 10:03:43 +0000
commit07968a9d9ade63d3809f96bd352ec9941af45ffb (patch)
tree5e518c2de88838eed2b33e20e319f9b799a801ec /etc/Makefile
parent4a1c13c11866a65936d57b1d535f61e2b389734a (diff)
downloadFreeBSD-src-07968a9d9ade63d3809f96bd352ec9941af45ffb.zip
FreeBSD-src-07968a9d9ade63d3809f96bd352ec9941af45ffb.tar.gz
Install /etc/security configuration files from OpenBSM.
Obtained from: TrustedBSD Project
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 9826a9c..c71568b 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -20,6 +20,15 @@ BIN1= amd.map apmd.conf auth.conf \
${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
${.CURDIR}/../usr.bin/mail/misc/mail.rc \
${.CURDIR}/../usr.bin/locate/locate/locate.rc
+
+OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
+BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
+ ${OPENBSMDIR}/etc/audit_event
+BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
+ ${OPENBSMDIR}/etc/audit_user
+BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
+BSM_ETC_DIR= ${DESTDIR}/etc/security
+
.if !defined(NO_LPR)
BIN1+= printcap
.endif
@@ -110,6 +119,12 @@ distribution:
cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
cd ${.CURDIR}/pam.d; ${MAKE} install
+ cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
+ ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
+ cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0400 \
+ ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
+ cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
+ ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
.if !defined(NO_I4B)
cd ${.CURDIR}/isdn; ${MAKE} install
.endif
OpenPOWER on IntegriCloud