Disable -Wcast-align in libbsm and libauditdAlong with some pending upstream changes, this will allow raising the WARNSlevel.Reviewed by: cem, aniketpMFC after: 2 weeksDifferential Revision: h
Disable -Wcast-align in libbsm and libauditdAlong with some pending upstream changes, this will allow raising the WARNSlevel.Reviewed by: cem, aniketpMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D16486
show more ...
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT:- Add a new "qsize" parameter in audit_control and the getacqsize(3) API to query it, allowing to set the kernel's maximum audit qu
Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT:- Add a new "qsize" parameter in audit_control and the getacqsize(3) API to query it, allowing to set the kernel's maximum audit queue length.- Add support to push a mapping between audit event names and event numbers into the kernel (where supported) using new A_GETEVENT and A_SETEVENT auditon(2) operations.- Add audit event identifiers for a number of new (and not-so-new) FreeBSD system calls including those for asynchronous I/O, thread management, SCTP, jails, multi-FIB support, and misc. POSIX interfaces such as posix_fallocate(2) and posix_fadvise(2).- On operating systems supporting Capsicum, auditreduce(1) and praudit(1) now run sandboxed.- Empty "flags" and "naflags" fields are now permitted in audit_control(5).Many thanks to Christian Brueffer for producing the OpenBSM release andimporting/tagging it in the vendor branch. This release will allow improvedauditing of a range of new FreeBSD functionality, as well as non-traditionalevents (e.g., fine-grained I/O auditing) not required by the Orange Book orCommon Criteria.Obtained from: TrustedBSD ProjectSponsored by: DARPA, AFRLMFC after: 3 weeks
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesThis implifies pathing in make/displayed outputMFC after: 3 weeksSponsored by: Dell EMC Isilon
First pass through library packaging.Sponsored by: The FreeBSD Foundation
Add au_notify.2 and MLINKs (added in OpenBSM 1.2 alpha 4).MFC after: 2 weeks
Don't override LIB*DIR variables from src.libnames.mk.In some cases switch to the LIB*SRCDIR value.These recently were defined in r291327 and r291619.Sponsored by: EMC / Isilon Storage Division
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.This both avoids some dependencies on xinstall.host and allowsbootstrapping on older releases to work due to lack of
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.This both avoids some dependencies on xinstall.host and allowsbootstrapping on older releases to work due to lack of at least 'install -l'support.Sponsored by: EMC / Isilon Storage Division
Fix typo when deregistering the VLAN unconfig event handlerSubmitted by: Masao Uebayashi <[email protected]>MFC after: 3 days
dirdeps.mk now sets DEP_RELDIR
Updated dependencies
Updated/new Makefile.depend
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <[email protected]>
Build lib/ with WARNS=6 by default.Similar to libexec/, do the same with lib/. Make WARNS=6 the norm andlower it when needed.I'm setting WARNS?=0 for secure/. It seems secure/ includes theMakef
Build lib/ with WARNS=6 by default.Similar to libexec/, do the same with lib/. Make WARNS=6 the norm andlower it when needed.I'm setting WARNS?=0 for secure/. It seems secure/ includes theMakefile.inc provided by lib/. I'm not going to touch that directory.Most of the code there is contributed anyway.
Bump the version of all non-symbol-versioned shared libraries inpreparation for 8.0-RELEASE. Add the previous version of thoselibraries to ObsoleteFiles.inc and bump __FreeBSD_Version.Reviewed b
Bump the version of all non-symbol-versioned shared libraries inpreparation for 8.0-RELEASE. Add the previous version of thoselibraries to ObsoleteFiles.inc and bump __FreeBSD_Version.Reviewed by: kibApproved by: re (rwatson)
Merge OpenBSM 1.1 from OpenBSM vendor branch to head.OpenBSM history for imported revision below for reference.MFC after: 2 weeksSponsored by: Apple, Inc.Obtained from: TrustedBSD Proje
Merge OpenBSM 1.1 from OpenBSM vendor branch to head.OpenBSM history for imported revision below for reference.MFC after: 2 weeksSponsored by: Apple, Inc.Obtained from: TrustedBSD ProjectOpenBSM 1.1- Change auditon(2) parameters and data structures to be 32/64-bit architecture independent. Add more information to man page about auditon(2) parameters.- Add wrapper functions for auditon(2) to use legacy commands when the new commands are not supported.- Add default for 'expire-after' in audit_control to expire trail files when the audit directory is more than 10 megabytes ('10M').- Interface to convert between local and BSM fcntl(2) command values has been added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with definitions of constants in audit_fcntl.h.- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens generated by audit_submit(3) were improperly encoded has been fixed.- Fix example in audit_submit(3) man page. Also, make it clear that we want the audit ID as the argument.- A new audit event class 'aa', for post-login authentication and authorization events, has been added.
Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, bothcontrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manualmerge). Hook up bsm_domain.c and bsm_socket_type.c to the libbsmb
Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, bothcontrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manualmerge). Hook up bsm_domain.c and bsm_socket_type.c to the libbsmbuild along with man pages, add audit_bsm_domain.c andaudit_bsm_socket_type.c to the kernel environment.OpenBSM history for imported revisions below for reference.MFC after: 1 monthSponsored by: Apple Inc.Obtained from: TrustedBSD ProjectOpenBSM 1.1 alpha 5- Stub libauditd(3) man page added.- All BSM error number constants with BSM_ERRNO_.- Interfaces to convert between local and BSM socket types and protocol families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions of constants in audit_domain.h and audit_socket_type.h. This improves interoperability by converting local constant spaces, which vary by OS, to and from Solaris constants (where available) or OpenBSM constants for protocol domains not present in Solaris (a fair number). These routines should be used when generating and interpreting extended socket tokens.- Fix build warnings with full gcc warnings enabled on most supported platforms.- Don't compile error strings into bsm_errno.c when building it in the kernel environment.- When started by launchd, use the label com.apple.auditd rather than org.trustedbsd.auditd.
Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, bothcontrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manualmerge). Add libauditd build parts and add to auditd's linkage;for
Merge OpenBSM alpha 4 from OpenBSM vendor branch to head, bothcontrib/openbsm (svn merge) and src/sys/{bsm,security/audit} (manualmerge). Add libauditd build parts and add to auditd's linkage;force libbsm to build before libauditd.OpenBSM history for imported revisions below for reference.MFC after: 1 monthSponsored by: Apple Inc.Obtained from: TrustedBSD ProjectOpenBSM 1.1 alpha 4- With the addition of BSM error number mapping, we also need to map the local error number passed to audit_submit(3) to a BSM error number, rather than have the caller perform that conversion.- Reallocate user audit events to avoid collisions with Solaris; adopt a more formal allocation scheme, and add some events allocated in Solaris that will be of immediate use on other platforms.- Add an event for Calife.- Add au_strerror(3), which allows generating strings for BSM errors directly, rather than requiring applications to map to the local error space, which might not be able to entirely represent the BSM error number space.- Major auditd rewrite for launchd(8) support. Add libauditd library that is shared between launchd and auditd.- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting auditing under launchd(8) on Mac OS X.- Add 'current' symlink to active audit trail.- Add crash recovery of previous audit trail file when detected on audit startup that it has not been properly terminated.- Add the event AUE_audit_recovery to indicated when an audit trail file has been recovered from not being properly terminated. This event is stored in the new audit trail file and includes the path of recovered audit trail file.- Mac OS X and FreeBSD dependent code in auditd.c is separated into auditd_darwin.c and auditd_fbsd.c files.- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls.- For Mac OS X, we use ASL(3) instead of syslog(3) for logging.- Add support for NOTICE level logging.OpenBSM 1.1 alpha 3- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map between BSM error numbers (largely the Solaris definitions) and local errno(2) values for 32-bit and 64-bit return tokens. This is required as operating systems don't agree on some of the values of more recent error numbers.- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total size for the token. This buge.- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed.
Install getaudit_addr(2) and setaudit_addr(2) links to getaudit(2) andsetaudit(2).MFC after: 3 daysSubmitted by: csjpObtained from: TrustedBSD Project
Bump library versions in preparation for 7.0.Ok'd by: kan
Add au_to_zonename.3 alias for au_token.3.Obtained from: TrustedBSD Project
Hook up additional OpenBSM man page aliases following OpenBSM 1.0 alpha 12import. Most of these should have existed previously, but didn't.MFC after: 3 daysObtained from: TrustedBSD Project
12