freebsd-nq/contrib/openbsm
Pawel Jakub Dawidek 7493f24ee6 - Implement two new system calls:
int bindat(int fd, int s, const struct sockaddr *addr, socklen_t addrlen);
	int connectat(int fd, int s, const struct sockaddr *name, socklen_t namelen);

  which allow to bind and connect respectively to a UNIX domain socket with a
  path relative to the directory associated with the given file descriptor 'fd'.

- Add manual pages for the new syscalls.

- Make the new syscalls available for processes in capability mode sandbox.

- Add capability rights CAP_BINDAT and CAP_CONNECTAT that has to be present on
  the directory descriptor for the syscalls to work.

- Update audit(4) to support those two new syscalls and to handle path
  in sockaddr_un structure relative to the given directory descriptor.

- Update procstat(1) to recognize the new capability rights.

- Document the new capability rights in cap_rights_limit(2).

Sponsored by:	The FreeBSD Foundation
Discussed with:	rwatson, jilles, kib, des
2013-03-02 21:11:30 +00:00
..
bin When we are waiting for new trail files we may have been disconnected and 2013-02-28 01:24:24 +00:00
bsm Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
compat Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
config Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
etc - Implement two new system calls: 2013-03-02 21:11:30 +00:00
libauditd Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
libbsm Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
m4 Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
man Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
modules Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
sys Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
test Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
tools Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
aclocal.m4 Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
autogen.sh Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
configure Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
configure.ac Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
CREDITS Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
FREEBSD-upgrade
INSTALL Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
LICENSE Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
Makefile.am Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
Makefile.in Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
NEWS Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00
README Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
TODO Merge OpenBSM 1.2-alpha2 from vendor branch to FreeBSD 10-CURRENT; the 2012-12-01 11:58:08 +00:00
VERSION Merge OpenBSM 1.2-alpha3 from the vendor branch to 10-CURRENT; this version 2012-12-15 14:59:00 +00:00

OpenBSM 1.2a2

  Introduction

OpenBSM is an open source implementation of Sun's BSM event auditing file
format and API.  Originally created for Apple Computer by McAfee Research,
OpenBSM is now maintained by volunteers and through the generous contribution
of several organizations.

OpenBSM includes several command line tools, including auditreduce(8) and
praudit(8) for reducing and printing audit trails, as well as the libbsm(3)
library to manage configuration files, generate audit records, and parse and
print audit trils.

Coupled with a kernel audit implementation, OpenBSM can be used to maintain
system audit streams, and is a foundation for a full audit-enabled system.
Portions of OpenBSM, including include files and token-building routines, are
reusable in a kernel audit implementation, and may be found in the FreeBSD
and Mac OS X kernels.

  Contents

OpenBSM consists of several directories:

    bin/           Audit-related command line tools
    bsm/           Library include files for BSM
    compat/        Compatibility code to build on various operating systems
    etc/           Sample /etc/security configuration files
    libauditd      Common audit management functions for auditd and launchd
    libbsm/        Implementation of BSM library interfaces and man pages
    man/           System call and configuration file man pages
    modules/       Directory for auditfilterd module source
    sys/           System include files for BSM
    test/          Test token sets and geneneration program
    tools/         Tool directory, including audump to dump databases

The following programs are included with OpenBSM:

    audit          Command line audit control tool
    auditd         Audit management daemon
    auditdistd     Audit trail distribution daemon
    auditfilterd   Experimental event monitoring framework
    auditreduce    Audit trail reduction tool
    audump         Debugging tool to parse and print audit databases
    praudit        Tool to print audit trails

  Build and Installation

Please see the file INSTALL for build and installation instructions.

  Contributions

The TrustedBSD Project would appreciate the contribution of bug fixes, 
enhancements, etc, under identically or substantially similar licenses to 
those present on the remainder of the OpenBSM source code.  Please see the
file CREDITS to learn more about who has contributed to the project.

  Location

Information on OpenBSM may be found on the OpenBSM home page:

    http://www.OpenBSM.org/

Information on TrustedBSD may be found on the TrustedBSD home page:

    http://www.TrustedBSD.org/

$P4: //depot/projects/trustedbsd/openbsm/README#41 $