Skip to content

Commit

Permalink
package: move OpenBSM auditing into its own package
Browse files Browse the repository at this point in the history
Move auditing runtime (auditd, etc.) into the new FreeBSD-audit package.
Also move the runtime OpenBSM manual pages from libbsm into auditd so
they get installed with the right package.

Add an UPDATING entry noting the new packages.

Reviewed by: imp, manu
Pull Request: freebsd#1197
  • Loading branch information
llfw authored and bsdimp committed Apr 29, 2024
1 parent 0c0a211 commit 1b3c07b
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 8 deletions.
5 changes: 5 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 15.x IS SLOW:
world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

20240428:
OpenBSM auditing runtime (auditd, etc.) has been moved into the new
package FreeBSD-audit. If you use OpenBSM auditing and pkgbase, you
should install FreeBSD-audit.

20240424:
cron, lpr, and ntpd have been moved from FreeBSD-utilities into their
own packages. If you use pkgbase, you should install the relevant
Expand Down
1 change: 1 addition & 0 deletions lib/libauditd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ OPENBSMDIR= ${SRCTOP}/contrib/openbsm
_LIBAUDITDDIR= ${OPENBSMDIR}/libauditd
_LIBBSMDIR= ${OPENBSMDIR}/libbsm

PACKAGE= audit
LIB= auditd

.PATH: ${_LIBAUDITDDIR}
Expand Down
6 changes: 0 additions & 6 deletions lib/libbsm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ MAN= libbsm.3 \
# they're not all libbsm parts.
#
MAN+= audit.2 \
audit.log.5 \
audit_class.5 \
audit_control.5 \
audit_event.5 \
audit_user.5 \
audit_warn.5 \
auditctl.2 \
auditon.2 \
getaudit.2 \
Expand Down
2 changes: 1 addition & 1 deletion libexec/rc/rc.d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ APMPACKAGE= apm
CONFGROUPS+= AUDIT
AUDIT+= auditd
AUDIT+= auditdistd
AUDITPACKAGE= rc
AUDITPACKAGE= audit
.endif

.if ${MK_AUTOFS} != "no"
Expand Down
2 changes: 2 additions & 0 deletions release/packages/Makefile.package
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ apm_COMMENT= APM Utilities
apm_DESC= APM Utilities
at_COMMENT= AT Utilities
at_DESC= AT Utilities
audit_COMMENT= OpenBSM auditing utilities
audit_DESC= OpenBSM auditing utilities
autofs_COMMENT= Autofs Utilities
autofs_DESC= Autofs Utilities
bhyve_COMMENT= Bhyve Utilities
Expand Down
1 change: 1 addition & 0 deletions usr.sbin/audit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ OPENBSMDIR=${SRCTOP}/contrib/openbsm

CFLAGS+= -I${OPENBSMDIR}

PACKAGE=audit
PROG= audit
MAN= audit.8

Expand Down
11 changes: 10 additions & 1 deletion usr.sbin/auditd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

OPENBSMDIR=${SRCTOP}/contrib/openbsm
.PATH: ${OPENBSMDIR}/bin/auditd
.PATH: ${OPENBSMDIR}/man

CFLAGS+= -I${OPENBSMDIR}

Expand All @@ -18,9 +19,17 @@ CONFSMODE_${OPENBSMETCDIR}/audit_user= 600
CONFS+= ${OPENBSMETCDIR}/audit_warn
CONFSMODE_${OPENBSMETCDIR}/audit_warn= 500
CONFSDIR= /etc/security

PACKAGE=audit
PROG= auditd
SRCS= auditd.c audit_warn.c auditd_fbsd.c
MAN= auditd.8
MAN= auditd.8 \
audit.log.5 \
audit_class.5 \
audit_control.5 \
audit_event.5 \
audit_user.5 \
audit_warn.5

LIBADD= auditd bsm

Expand Down
1 change: 1 addition & 0 deletions usr.sbin/auditdistd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CFLAGS+=-DOPENSSL_API_COMPAT=0x10100000L
NO_WFORMAT=
NO_WMISSING_VARIABLE_DECLARATIONS=

PACKAGE=audit
PROG= auditdistd
SRCS= auditdistd.c
SRCS+= parse.y pjdlog.c
Expand Down
1 change: 1 addition & 0 deletions usr.sbin/auditreduce/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ OPENBSMDIR=${SRCTOP}/contrib/openbsm

CFLAGS+= -I${OPENBSMDIR}

PACKAGE=audit
PROG= auditreduce
MAN= auditreduce.1

Expand Down
1 change: 1 addition & 0 deletions usr.sbin/praudit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ OPENBSMDIR=${SRCTOP}/contrib/openbsm

CFLAGS+= -I${OPENBSMDIR}

PACKAGE=audit
PROG= praudit
MAN= praudit.1

Expand Down

0 comments on commit 1b3c07b

Please sign in to comment.