From owner-svn-src-projects@FreeBSD.ORG Sun Jan 18 05:23:28 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA010106566B; Sun, 18 Jan 2009 05:23:28 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9478F8FC13; Sun, 18 Jan 2009 05:23:28 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0I5NSgn062153; Sun, 18 Jan 2009 05:23:28 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0I5NRqi062126; Sun, 18 Jan 2009 05:23:27 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200901180523.n0I5NRqi062126@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Sun, 18 Jan 2009 05:23:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187377 - in projects/mips: . bin/kenv bin/ln cddl/contrib/opensolaris/lib/libdtrace/common contrib/ntp/ntpd contrib/openbsm contrib/openbsm/bin/auditd contrib/openbsm/bin/auditreduce c... X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2009 05:23:28 -0000 Author: gonzo Date: Sun Jan 18 05:23:26 2009 New Revision: 187377 URL: http://svn.freebsd.org/changeset/base/187377 Log: Sync with head Added: projects/mips/contrib/openbsm/libauditd/libauditd.3 - copied unchanged from r187376, head/contrib/openbsm/libauditd/libauditd.3 projects/mips/contrib/openbsm/libbsm/au_domain.3 - copied unchanged from r187376, head/contrib/openbsm/libbsm/au_domain.3 projects/mips/contrib/openbsm/libbsm/au_socket_type.3 - copied unchanged from r187376, head/contrib/openbsm/libbsm/au_socket_type.3 projects/mips/contrib/openbsm/libbsm/bsm_domain.c - copied unchanged from r187376, head/contrib/openbsm/libbsm/bsm_domain.c projects/mips/contrib/openbsm/libbsm/bsm_socket_type.c - copied unchanged from r187376, head/contrib/openbsm/libbsm/bsm_socket_type.c projects/mips/contrib/openbsm/sys/bsm/audit_domain.h - copied unchanged from r187376, head/contrib/openbsm/sys/bsm/audit_domain.h projects/mips/contrib/openbsm/sys/bsm/audit_socket_type.h - copied unchanged from r187376, head/contrib/openbsm/sys/bsm/audit_socket_type.h projects/mips/lib/libc/stdio/printfcommon.h - copied unchanged from r187376, head/lib/libc/stdio/printfcommon.h projects/mips/sys/bsm/audit_domain.h - copied unchanged from r187376, head/sys/bsm/audit_domain.h projects/mips/sys/bsm/audit_socket_type.h - copied unchanged from r187376, head/sys/bsm/audit_socket_type.h projects/mips/sys/dev/ofw/ofw_iicbus.c - copied unchanged from r187376, head/sys/dev/ofw/ofw_iicbus.c projects/mips/sys/dev/usb2/controller/atmegadci.c - copied unchanged from r187376, head/sys/dev/usb2/controller/atmegadci.c projects/mips/sys/dev/usb2/controller/atmegadci.h - copied unchanged from r187376, head/sys/dev/usb2/controller/atmegadci.h projects/mips/sys/dev/usb2/controller/atmegadci_atmelarm.c - copied unchanged from r187376, head/sys/dev/usb2/controller/atmegadci_atmelarm.c projects/mips/sys/dev/usb2/ethernet/if_auereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_auereg.h projects/mips/sys/dev/usb2/ethernet/if_axereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_axereg.h projects/mips/sys/dev/usb2/ethernet/if_cdcereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_cdcereg.h projects/mips/sys/dev/usb2/ethernet/if_cuereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_cuereg.h projects/mips/sys/dev/usb2/ethernet/if_kuefw.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_kuefw.h projects/mips/sys/dev/usb2/ethernet/if_kuereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_kuereg.h projects/mips/sys/dev/usb2/ethernet/if_ruereg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_ruereg.h projects/mips/sys/dev/usb2/ethernet/if_udavreg.h - copied unchanged from r187376, head/sys/dev/usb2/ethernet/if_udavreg.h projects/mips/sys/dev/usb2/wlan/if_rumfw.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_rumfw.h projects/mips/sys/dev/usb2/wlan/if_rumreg.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_rumreg.h projects/mips/sys/dev/usb2/wlan/if_rumvar.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_rumvar.h projects/mips/sys/dev/usb2/wlan/if_uralreg.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_uralreg.h projects/mips/sys/dev/usb2/wlan/if_uralvar.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_uralvar.h projects/mips/sys/dev/usb2/wlan/if_zydfw.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_zydfw.h projects/mips/sys/dev/usb2/wlan/if_zydreg.h - copied unchanged from r187376, head/sys/dev/usb2/wlan/if_zydreg.h projects/mips/sys/modules/usb2/controller_atmegadci/ - copied from r187376, head/sys/modules/usb2/controller_atmegadci/ projects/mips/sys/powerpc/powermac/kiic.c - copied unchanged from r187376, head/sys/powerpc/powermac/kiic.c projects/mips/sys/security/audit/audit_bsm_domain.c - copied unchanged from r187376, head/sys/security/audit/audit_bsm_domain.c projects/mips/sys/security/audit/audit_bsm_socket_type.c - copied unchanged from r187376, head/sys/security/audit/audit_bsm_socket_type.c projects/mips/tools/regression/usr.bin/jot/regress.wX1.out - copied unchanged from r187376, head/tools/regression/usr.bin/jot/regress.wX1.out projects/mips/tools/tools/ath/athrd/ - copied from r187376, head/tools/tools/ath/athrd/ projects/mips/tools/tools/net80211/scripts/setup.tdma-master - copied unchanged from r187376, head/tools/tools/net80211/scripts/setup.tdma-master projects/mips/tools/tools/net80211/scripts/setup.tdma-slave - copied unchanged from r187376, head/tools/tools/net80211/scripts/setup.tdma-slave projects/mips/tools/tools/net80211/wlantxtime/ - copied from r187376, head/tools/tools/net80211/wlantxtime/ projects/mips/tools/tools/sysbuild/ - copied from r187376, head/tools/tools/sysbuild/ projects/mips/usr.bin/mail/util.c - copied unchanged from r187376, head/usr.bin/mail/util.c Deleted: projects/mips/sys/boot/common/load.c projects/mips/sys/dev/digi/con.CX-IBM.h projects/mips/sys/dev/digi/con.CX.h projects/mips/sys/dev/digi/con.EPCX.h projects/mips/sys/dev/digi/con.MBank.h projects/mips/sys/dev/usb2/ethernet/if_aue2_reg.h projects/mips/sys/dev/usb2/ethernet/if_axe2_reg.h projects/mips/sys/dev/usb2/ethernet/if_cdce2_reg.h projects/mips/sys/dev/usb2/ethernet/if_cue2_reg.h projects/mips/sys/dev/usb2/ethernet/if_kue2_fw.h projects/mips/sys/dev/usb2/ethernet/if_kue2_reg.h projects/mips/sys/dev/usb2/ethernet/if_rue2_reg.h projects/mips/sys/dev/usb2/ethernet/if_udav2_reg.h projects/mips/sys/dev/usb2/wlan/if_rum2_fw.h projects/mips/sys/dev/usb2/wlan/if_rum2_reg.h projects/mips/sys/dev/usb2/wlan/if_rum2_var.h projects/mips/sys/dev/usb2/wlan/if_ural2_reg.h projects/mips/sys/dev/usb2/wlan/if_ural2_var.h projects/mips/sys/dev/usb2/wlan/if_zyd2_fw.h projects/mips/sys/dev/usb2/wlan/if_zyd2_reg.h projects/mips/sys/powerpc/booke/support.S projects/mips/tools/regression/usr.bin/jot/regress.wX.out projects/mips/usr.bin/mail/aux.c Modified: projects/mips/ (props changed) projects/mips/Makefile.inc1 projects/mips/UPDATING projects/mips/bin/kenv/kenv.1 projects/mips/bin/ln/ln.1 projects/mips/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c projects/mips/contrib/ntp/ntpd/ntp_crypto.c projects/mips/contrib/openbsm/ (props changed) projects/mips/contrib/openbsm/INSTALL projects/mips/contrib/openbsm/NEWS projects/mips/contrib/openbsm/VERSION projects/mips/contrib/openbsm/bin/auditd/auditd.8 projects/mips/contrib/openbsm/bin/auditd/auditd.c projects/mips/contrib/openbsm/bin/auditd/auditd_darwin.c projects/mips/contrib/openbsm/bin/auditd/auditd_fbsd.c projects/mips/contrib/openbsm/bin/auditreduce/auditreduce.c projects/mips/contrib/openbsm/bsm/auditd_lib.h projects/mips/contrib/openbsm/bsm/libbsm.h projects/mips/contrib/openbsm/configure projects/mips/contrib/openbsm/configure.ac projects/mips/contrib/openbsm/libauditd/Makefile.am projects/mips/contrib/openbsm/libauditd/Makefile.in projects/mips/contrib/openbsm/libauditd/auditd_lib.c projects/mips/contrib/openbsm/libbsm/Makefile.am projects/mips/contrib/openbsm/libbsm/Makefile.in projects/mips/contrib/openbsm/libbsm/au_token.3 projects/mips/contrib/openbsm/libbsm/bsm_audit.c projects/mips/contrib/openbsm/libbsm/bsm_errno.c projects/mips/contrib/openbsm/libbsm/bsm_io.c projects/mips/contrib/openbsm/libbsm/bsm_token.c projects/mips/contrib/openbsm/libbsm/libbsm.3 projects/mips/contrib/openbsm/man/audit_user.5 projects/mips/contrib/openbsm/sys/bsm/Makefile.am projects/mips/contrib/openbsm/sys/bsm/Makefile.in projects/mips/contrib/openbsm/sys/bsm/audit.h projects/mips/contrib/openbsm/sys/bsm/audit_errno.h projects/mips/contrib/openbsm/sys/bsm/audit_record.h projects/mips/contrib/openbsm/test/bsm/generate.c projects/mips/contrib/openbsm/test/reference/E2BIG_record projects/mips/contrib/openbsm/test/reference/EACCES_record projects/mips/contrib/openbsm/test/reference/EBADF_record projects/mips/contrib/openbsm/test/reference/EBUSY_record projects/mips/contrib/openbsm/test/reference/ECHILD_record projects/mips/contrib/openbsm/test/reference/EDEADLK_record projects/mips/contrib/openbsm/test/reference/EEXIST_record projects/mips/contrib/openbsm/test/reference/EFAULT_record projects/mips/contrib/openbsm/test/reference/EFBIG_record projects/mips/contrib/openbsm/test/reference/EINTR_record projects/mips/contrib/openbsm/test/reference/EINVAL_record projects/mips/contrib/openbsm/test/reference/EIO_record projects/mips/contrib/openbsm/test/reference/EISDIR_record projects/mips/contrib/openbsm/test/reference/EMFILE_record projects/mips/contrib/openbsm/test/reference/EMLINK_record projects/mips/contrib/openbsm/test/reference/ENFILE_record projects/mips/contrib/openbsm/test/reference/ENODEV_record projects/mips/contrib/openbsm/test/reference/ENOENT_record projects/mips/contrib/openbsm/test/reference/ENOEXEC_record projects/mips/contrib/openbsm/test/reference/ENOMEM_record projects/mips/contrib/openbsm/test/reference/ENOSPC_record projects/mips/contrib/openbsm/test/reference/ENOTBLK_record projects/mips/contrib/openbsm/test/reference/ENOTDIR_record projects/mips/contrib/openbsm/test/reference/ENOTTY_record projects/mips/contrib/openbsm/test/reference/ENXIO_record projects/mips/contrib/openbsm/test/reference/EPERM_record projects/mips/contrib/openbsm/test/reference/EPIPE_record projects/mips/contrib/openbsm/test/reference/EROFS_record projects/mips/contrib/openbsm/test/reference/ESPIPE_record projects/mips/contrib/openbsm/test/reference/ESRCH_record projects/mips/contrib/openbsm/test/reference/ETXTBSY_record projects/mips/contrib/openbsm/test/reference/EXDEV_record projects/mips/contrib/openbsm/test/reference/arg32_record projects/mips/contrib/openbsm/test/reference/data_record projects/mips/contrib/openbsm/test/reference/data_token projects/mips/contrib/openbsm/test/reference/file_record projects/mips/contrib/openbsm/test/reference/in_addr_record projects/mips/contrib/openbsm/test/reference/ip_record projects/mips/contrib/openbsm/test/reference/ipc_record projects/mips/contrib/openbsm/test/reference/iport_record projects/mips/contrib/openbsm/test/reference/opaque_record projects/mips/contrib/openbsm/test/reference/path_record projects/mips/contrib/openbsm/test/reference/process32_record projects/mips/contrib/openbsm/test/reference/process32ex_record-IPv4 projects/mips/contrib/openbsm/test/reference/process32ex_record-IPv6 projects/mips/contrib/openbsm/test/reference/process64_record projects/mips/contrib/openbsm/test/reference/process64ex_record-IPv4 projects/mips/contrib/openbsm/test/reference/process64ex_record-IPv6 projects/mips/contrib/openbsm/test/reference/return32_record projects/mips/contrib/openbsm/test/reference/seq_record projects/mips/contrib/openbsm/test/reference/socketex_record projects/mips/contrib/openbsm/test/reference/socketex_token projects/mips/contrib/openbsm/test/reference/subject32_record projects/mips/contrib/openbsm/test/reference/subject32ex_record projects/mips/contrib/openbsm/test/reference/text_record projects/mips/contrib/openbsm/test/reference/zonename_record projects/mips/contrib/wpa_supplicant/ (props changed) projects/mips/etc/periodic/weekly/Makefile projects/mips/etc/regdomain.xml projects/mips/lib/libarchive/archive_read_support_format_iso9660.c projects/mips/lib/libbsm/Makefile projects/mips/lib/libc/locale/mbstowcs.c projects/mips/lib/libc/locale/wcsftime.c projects/mips/lib/libc/locale/wcstombs.c projects/mips/lib/libc/stdio/fputws.c projects/mips/lib/libc/stdio/vfprintf.c projects/mips/lib/libc/stdio/vfwprintf.c projects/mips/lib/libc/stdio/vswscanf.c projects/mips/lib/libc/string/ffs.3 projects/mips/lib/libusb20/libusb20.c projects/mips/lib/msun/src/e_rem_pio2.c projects/mips/lib/msun/src/e_rem_pio2f.c projects/mips/lib/msun/src/k_cosf.c projects/mips/lib/msun/src/k_sinf.c projects/mips/lib/msun/src/k_tanf.c projects/mips/libexec/comsat/comsat.c projects/mips/sbin/fdisk/fdisk.c projects/mips/sbin/ifconfig/ifconfig.c projects/mips/sbin/ifconfig/ifieee80211.c projects/mips/sbin/mount/mount.c projects/mips/sbin/recoverdisk/recoverdisk.c projects/mips/share/examples/cvsup/refuse.README projects/mips/share/man/man4/ath.4 projects/mips/share/man/man4/bce.4 projects/mips/share/man/man4/bge.4 projects/mips/share/man/man4/gem.4 projects/mips/share/man/man4/hme.4 projects/mips/share/man/man4/sdhci.4 projects/mips/sys/ (props changed) projects/mips/sys/amd64/amd64/exception.S projects/mips/sys/amd64/conf/GENERIC projects/mips/sys/amd64/conf/USB2 projects/mips/sys/arm/arm/cpufunc_asm_sheeva.S (props changed) projects/mips/sys/arm/xscale/i8134x/i81342_mcu.c projects/mips/sys/boot/forth/support.4th projects/mips/sys/bsm/audit.h projects/mips/sys/bsm/audit_errno.h projects/mips/sys/bsm/audit_internal.h projects/mips/sys/bsm/audit_kevents.h projects/mips/sys/bsm/audit_record.h projects/mips/sys/cam/cam_xpt.c projects/mips/sys/cam/scsi/scsi_all.c projects/mips/sys/cam/scsi/scsi_da.c projects/mips/sys/cam/scsi/scsi_sg.c projects/mips/sys/conf/NOTES projects/mips/sys/conf/files projects/mips/sys/conf/files.powerpc projects/mips/sys/conf/options projects/mips/sys/contrib/pf/ (props changed) projects/mips/sys/dev/acpica/acpi_battery.c projects/mips/sys/dev/ath/ath_hal/ah_regdomain.c projects/mips/sys/dev/ath/ath_hal/ar5212/ar5212_rfgain.c projects/mips/sys/dev/bce/if_bce.c projects/mips/sys/dev/e1000/if_igb.c projects/mips/sys/dev/iicbus/iic.c projects/mips/sys/dev/iicbus/iicbus.c projects/mips/sys/dev/msk/if_msk.c projects/mips/sys/dev/msk/if_mskreg.h projects/mips/sys/dev/pci/pci.c projects/mips/sys/dev/sound/pci/cmi.c projects/mips/sys/dev/sound/pci/hda/hdac.c projects/mips/sys/dev/syscons/teken/sequences projects/mips/sys/dev/syscons/teken/teken.c projects/mips/sys/dev/syscons/teken/teken.h projects/mips/sys/dev/syscons/teken/teken_demo.c projects/mips/sys/dev/syscons/teken/teken_subr.h projects/mips/sys/dev/syscons/teken/teken_subr_compat.h projects/mips/sys/dev/usb/ehci.c projects/mips/sys/dev/usb/ehci_ixp4xx.c (props changed) projects/mips/sys/dev/usb/usbdevs projects/mips/sys/dev/usb2/bluetooth/ubtbcmfw2.c projects/mips/sys/dev/usb2/controller/at91dci.c projects/mips/sys/dev/usb2/controller/at91dci.h projects/mips/sys/dev/usb2/controller/at91dci_atmelarm.c projects/mips/sys/dev/usb2/controller/ehci2.c projects/mips/sys/dev/usb2/controller/ehci2.h projects/mips/sys/dev/usb2/controller/ehci2_pci.c projects/mips/sys/dev/usb2/controller/musb2_otg.c projects/mips/sys/dev/usb2/controller/musb2_otg.h projects/mips/sys/dev/usb2/controller/musb2_otg_atmelarm.c projects/mips/sys/dev/usb2/controller/ohci2.c projects/mips/sys/dev/usb2/controller/ohci2.h projects/mips/sys/dev/usb2/controller/ohci2_atmelarm.c projects/mips/sys/dev/usb2/controller/ohci2_pci.c projects/mips/sys/dev/usb2/controller/uhci2.c projects/mips/sys/dev/usb2/controller/uhci2.h projects/mips/sys/dev/usb2/controller/uhci2_pci.c projects/mips/sys/dev/usb2/controller/usb2_bus.h projects/mips/sys/dev/usb2/controller/usb2_controller.c projects/mips/sys/dev/usb2/controller/usb2_controller.h projects/mips/sys/dev/usb2/controller/uss820dci.c projects/mips/sys/dev/usb2/controller/uss820dci.h projects/mips/sys/dev/usb2/controller/uss820dci_atmelarm.c projects/mips/sys/dev/usb2/core/usb2_busdma.c projects/mips/sys/dev/usb2/core/usb2_compat_linux.c projects/mips/sys/dev/usb2/core/usb2_core.h projects/mips/sys/dev/usb2/core/usb2_debug.c projects/mips/sys/dev/usb2/core/usb2_device.c projects/mips/sys/dev/usb2/core/usb2_generic.c projects/mips/sys/dev/usb2/core/usb2_handle_request.c projects/mips/sys/dev/usb2/core/usb2_hub.c projects/mips/sys/dev/usb2/core/usb2_mbuf.h projects/mips/sys/dev/usb2/core/usb2_parse.c projects/mips/sys/dev/usb2/core/usb2_request.c projects/mips/sys/dev/usb2/core/usb2_sw_transfer.c projects/mips/sys/dev/usb2/core/usb2_transfer.c projects/mips/sys/dev/usb2/core/usb2_transfer.h projects/mips/sys/dev/usb2/ethernet/if_aue2.c projects/mips/sys/dev/usb2/ethernet/if_axe2.c projects/mips/sys/dev/usb2/ethernet/if_cdce2.c projects/mips/sys/dev/usb2/ethernet/if_cue2.c projects/mips/sys/dev/usb2/ethernet/if_kue2.c projects/mips/sys/dev/usb2/ethernet/if_rue2.c projects/mips/sys/dev/usb2/ethernet/if_udav2.c projects/mips/sys/dev/usb2/image/uscanner2.c projects/mips/sys/dev/usb2/include/usb2_defs.h projects/mips/sys/dev/usb2/include/usb2_devid.h projects/mips/sys/dev/usb2/include/usb2_devtable.h projects/mips/sys/dev/usb2/include/usb2_standard.h projects/mips/sys/dev/usb2/input/uhid2.c projects/mips/sys/dev/usb2/input/ukbd2.c projects/mips/sys/dev/usb2/input/ums2.c projects/mips/sys/dev/usb2/serial/u3g2.c projects/mips/sys/dev/usb2/serial/uark2.c projects/mips/sys/dev/usb2/serial/ubsa2.c projects/mips/sys/dev/usb2/serial/ubser2.c projects/mips/sys/dev/usb2/serial/uchcom2.c projects/mips/sys/dev/usb2/serial/ucycom2.c projects/mips/sys/dev/usb2/serial/ufoma2.c projects/mips/sys/dev/usb2/serial/uftdi2.c projects/mips/sys/dev/usb2/serial/ugensa2.c projects/mips/sys/dev/usb2/serial/uipaq2.c projects/mips/sys/dev/usb2/serial/ulpt2.c projects/mips/sys/dev/usb2/serial/umct2.c projects/mips/sys/dev/usb2/serial/umodem2.c projects/mips/sys/dev/usb2/serial/umoscom2.c projects/mips/sys/dev/usb2/serial/uplcom2.c projects/mips/sys/dev/usb2/serial/usb2_serial.c projects/mips/sys/dev/usb2/serial/usb2_serial.h projects/mips/sys/dev/usb2/serial/uvisor2.c projects/mips/sys/dev/usb2/serial/uvscom2.c projects/mips/sys/dev/usb2/sound/uaudio2.c projects/mips/sys/dev/usb2/storage/ata-usb2.c projects/mips/sys/dev/usb2/storage/umass2.c projects/mips/sys/dev/usb2/wlan/if_rum2.c projects/mips/sys/dev/usb2/wlan/if_ural2.c projects/mips/sys/dev/usb2/wlan/if_zyd2.c projects/mips/sys/fs/msdosfs/msdosfs_conv.c projects/mips/sys/i386/conf/GENERIC projects/mips/sys/i386/conf/USB2 projects/mips/sys/i386/i386/i686_mem.c projects/mips/sys/i386/i386/identcpu.c projects/mips/sys/i386/i386/initcpu.c projects/mips/sys/i386/i386/msi.c projects/mips/sys/kern/kern_clock.c projects/mips/sys/kern/kern_synch.c projects/mips/sys/kern/kern_timeout.c projects/mips/sys/kern/sched_4bsd.c projects/mips/sys/kern/sched_ule.c projects/mips/sys/kern/subr_pcpu.c projects/mips/sys/kern/sysv_sem.c projects/mips/sys/mips/idt/idtpci.c projects/mips/sys/mips/include/pmap.h projects/mips/sys/mips/malta/gt_pci.c projects/mips/sys/mips/mips/busdma_machdep.c projects/mips/sys/mips/mips/cpu.c projects/mips/sys/mips/mips/elf64_machdep.c (props changed) projects/mips/sys/mips/mips/machdep.c projects/mips/sys/mips/mips/nexus.c projects/mips/sys/mips/mips/pmap.c projects/mips/sys/net/rtsock.c projects/mips/sys/netinet/libalias/alias_ftp.c projects/mips/sys/netinet/libalias/alias_irc.c projects/mips/sys/netinet/libalias/alias_nbt.c projects/mips/sys/netinet/tcp_input.c projects/mips/sys/netinet/tcp_subr.c projects/mips/sys/netinet/tcp_timer.c projects/mips/sys/netinet/tcp_var.h projects/mips/sys/netinet/vinet.h projects/mips/sys/pc98/conf/GENERIC projects/mips/sys/powerpc/booke/locore.S projects/mips/sys/powerpc/booke/machdep.c projects/mips/sys/powerpc/booke/pmap.c projects/mips/sys/powerpc/booke/trap_subr.S projects/mips/sys/powerpc/conf/NOTES projects/mips/sys/powerpc/include/pcpu.h projects/mips/sys/powerpc/include/pmap.h projects/mips/sys/powerpc/include/pte.h projects/mips/sys/powerpc/include/tlb.h projects/mips/sys/powerpc/powerpc/genassym.c projects/mips/sys/security/audit/audit_bsm_errno.c projects/mips/sys/security/audit/audit_bsm_token.c projects/mips/sys/sys/ktr.h projects/mips/sys/sys/param.h projects/mips/sys/sys/pcpu.h projects/mips/sys/sys/sched.h projects/mips/tools/regression/fstest/tests/conf projects/mips/tools/regression/fstest/tests/misc.sh projects/mips/tools/regression/usr.bin/jot/regress.sh projects/mips/tools/sched/schedgraph.py projects/mips/tools/tools/ath/Makefile projects/mips/tools/tools/ath/Makefile.inc projects/mips/tools/tools/net80211/Makefile projects/mips/usr.bin/fetch/fetch.c projects/mips/usr.bin/gprof/gprof.c projects/mips/usr.bin/mail/Makefile projects/mips/usr.bin/make/job.c projects/mips/usr.bin/make/main.c projects/mips/usr.bin/netstat/inet6.c projects/mips/usr.sbin/boot0cfg/boot0cfg.8 projects/mips/usr.sbin/crunch/crunchgen/crunchgen.c projects/mips/usr.sbin/jail/jail.8 projects/mips/usr.sbin/makefs/ffs/ffs_bswap.c (props changed) projects/mips/usr.sbin/makefs/ffs/ffs_subr.c (props changed) projects/mips/usr.sbin/makefs/ffs/ufs_bswap.h (props changed) projects/mips/usr.sbin/makefs/getid.c (props changed) projects/mips/usr.sbin/usbconfig/usbconfig.c Modified: projects/mips/Makefile.inc1 ============================================================================== --- projects/mips/Makefile.inc1 Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/Makefile.inc1 Sun Jan 18 05:23:26 2009 (r187377) @@ -5,6 +5,7 @@ # -DNO_CLEANDIR run ${MAKE} clean, instead of ${MAKE} cleandir # -DNO_CLEAN do not clean at all # -DNO_SHARE do not go into share subdir +# -DKERNFAST define NO_KERNELCONFIG, NO_KERNELCLEAN and NO_KERNELCONFIG # -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel # -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel # -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel @@ -697,6 +698,11 @@ distrib-dirs distribution: # be set to cross-build, we have to make sure TARGET is set # properly. +.if defined(KERNFAST) +NO_KERNELCLEAN= t +NO_KERNELCONFIG= t +NO_KERNELDEPEND= t +.endif .if !defined(KERNCONF) && defined(KERNEL) KERNCONF= ${KERNEL} KERNWARN= Modified: projects/mips/UPDATING ============================================================================== --- projects/mips/UPDATING Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/UPDATING Sun Jan 18 05:23:26 2009 (r187377) @@ -22,6 +22,12 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 8. to maximize performance. (To disable malloc debugging, run ln -s aj /etc/malloc.conf.) +20090115: + TCP Appropriate Byte Counting (RFC 3465) support added to kernel. + New field in struct tcpcb breaks ABI, so bump __FreeBSD_version to + 800061. User space tools that rely on the size of struct tcpcb in + tcp_var.h (e.g. sockstat) need to be recompiled. + 20081225: ng_tty(4) module updated to match the new TTY subsystem. Due to API change, user-level applications must be updated. Modified: projects/mips/bin/kenv/kenv.1 ============================================================================== --- projects/mips/bin/kenv/kenv.1 Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/bin/kenv/kenv.1 Sun Jan 18 05:23:26 2009 (r187377) @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd September 13, 2005 +.Dd January 13, 2009 .Dt KENV 1 .Os .Sh NAME @@ -67,8 +67,28 @@ If the .Fl q option is set, warnings normally printed as a result of being unable to perform the requested operation will be suppressed. +.Pp +Variables can be added to the kernel environment using the +.Xr /boot/loader.conf +file, or also statically compiled into the kernel using the statement +.Pp +.Dl Ic env Ar filename +.Pp +in the kernel config file. +The file can contain lines of the form +.Pp +.Dl name = "value" # this is a comment +.Pp +where whitespace around name and '=', and +everything after a '#' character, are ignored. Almost any printable +character except '=' is acceptable as part of a name. Quotes +are optional and necessary only if the value contains +whitespace. +.Pp .Sh SEE ALSO .Xr kenv 2 , +.Xr config 5 , +.Xr loader.conf 5 , .Xr loader 8 .Sh HISTORY The Modified: projects/mips/bin/ln/ln.1 ============================================================================== --- projects/mips/bin/ln/ln.1 Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/bin/ln/ln.1 Sun Jan 18 05:23:26 2009 (r187377) @@ -38,7 +38,7 @@ .Sh NAME .Nm ln , .Nm link -.Nd make links +.Nd link files .Sh SYNOPSIS .Nm .Op Fl s Op Fl F @@ -57,8 +57,13 @@ .Sh DESCRIPTION The .Nm -utility creates a new directory entry (linked file) which has the -same modes as the original file. +utility creates a new directory entry (linked file) for the file name +specified by +.Ar target_file . +The +.Ar target_file +will be created with the same file modes as the +.Ar source_file . It is useful for maintaining multiple copies of a file in many places at once without using up storage for the .Dq copies ; @@ -148,7 +153,7 @@ links. A hard link to a file is indistinguishable from the original directory entry; any changes to a file are effectively independent of the name used to reference the file. -Hard links may not normally refer to directories and may not span file systems. +Directories may not be hardlinked, and hard links may not span file systems. .Pp A symbolic link contains the name of the file to which it is linked. Modified: projects/mips/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c ============================================================================== --- projects/mips/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c Sun Jan 18 05:23:26 2009 (r187377) @@ -1739,15 +1739,11 @@ dtrace_program_link(dtrace_hdl_t *dtp, d * Arches which are 32-bit only just use the normal * library path. */ -#if defined(__i386__) - int use_32 = 1; /* use /usr/lib/... -sson */ -#else int use_32 = 0; #endif -#endif (void) snprintf(drti, sizeof (drti), "/usr/lib%s/dtrace/drti.o", - use_32 ? "":"32"); + use_32 ? "32":""); len = snprintf(&tmp, 1, fmt, dtp->dt_ld_path, file, tfile, drti) + 1; Modified: projects/mips/contrib/ntp/ntpd/ntp_crypto.c ============================================================================== --- projects/mips/contrib/ntp/ntpd/ntp_crypto.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/ntp/ntpd/ntp_crypto.c Sun Jan 18 05:23:26 2009 (r187377) @@ -1612,7 +1612,7 @@ crypto_verify( */ EVP_VerifyInit(&ctx, peer->digest); EVP_VerifyUpdate(&ctx, (u_char *)&ep->tstamp, vallen + 12); - if (!EVP_VerifyFinal(&ctx, (u_char *)&ep->pkt[i], siglen, pkey)) + if (EVP_VerifyFinal(&ctx, (u_char *)&ep->pkt[i], siglen, pkey) <= 0) return (XEVNT_SIG); if (peer->crypto & CRYPTO_FLAG_VRFY) { Modified: projects/mips/contrib/openbsm/INSTALL ============================================================================== --- projects/mips/contrib/openbsm/INSTALL Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/INSTALL Sun Jan 18 05:23:26 2009 (r187377) @@ -9,6 +9,12 @@ support are built conditionally. Typica ./configure make +If doing development work on OpenBSM with gcc, the following invocation of +configure may be preferred in order to generate full compiler warnings and +force the compile to fail if a warning is found: + + CFLAGS="-Wall -Werror" ./configure + To install, use: make install Modified: projects/mips/contrib/openbsm/NEWS ============================================================================== --- projects/mips/contrib/openbsm/NEWS Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/NEWS Sun Jan 18 05:23:26 2009 (r187377) @@ -1,5 +1,24 @@ OpenBSM Version History +OpenBSM 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. + OpenBSM 1.1 alpha 4 - With the addition of BSM error number mapping, we also need to map the @@ -393,4 +412,4 @@ OpenBSM 1.0 alpha 1 to support reloading of kernel event table. - Allow comments in /etc/security configuration files. -$P4: //depot/projects/trustedbsd/openbsm/NEWS#21 $ +$P4: //depot/projects/trustedbsd/openbsm/NEWS#27 $ Modified: projects/mips/contrib/openbsm/VERSION ============================================================================== --- projects/mips/contrib/openbsm/VERSION Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/VERSION Sun Jan 18 05:23:26 2009 (r187377) @@ -1 +1 @@ -OPENBSM_1_1_ALPHA_4 +OPENBSM_1_1_ALPHA_5 Modified: projects/mips/contrib/openbsm/bin/auditd/auditd.8 ============================================================================== --- projects/mips/contrib/openbsm/bin/auditd/auditd.8 Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bin/auditd/auditd.8 Sun Jan 18 05:23:26 2009 (r187377) @@ -25,7 +25,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.8#16 $ +.\" $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.8#17 $ .\" .Dd December 11, 2008 .Dt AUDITD 8 @@ -115,6 +115,7 @@ and are no longer available as arguments .Nm . .Sh SEE ALSO .Xr asl 3 , +.Xr libauditd 3 , .Xr audit 4 , .Xr audit_class 5 , .Xr audit_control 5 , Modified: projects/mips/contrib/openbsm/bin/auditd/auditd.c ============================================================================== --- projects/mips/contrib/openbsm/bin/auditd/auditd.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bin/auditd/auditd.c Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#40 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd.c#41 $ */ #include @@ -252,7 +252,7 @@ do_trail_file(void) */ err = auditd_read_dirs(audit_warn_soft, audit_warn_hard); if (err) { - auditd_log_err("auditd_read_dirs() %s: %m", + auditd_log_err("auditd_read_dirs(): %s", auditd_strerror(err)); if (err == ADE_HARDLIM) audit_warn_allhard(); Modified: projects/mips/contrib/openbsm/bin/auditd/auditd_darwin.c ============================================================================== --- projects/mips/contrib/openbsm/bin/auditd/auditd_darwin.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bin/auditd/auditd_darwin.c Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#2 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_darwin.c#3 $ */ #include @@ -83,7 +83,7 @@ static int max_idletime = 0; #endif /* __BSM_INTERNAL_NOTIFY_KEY */ #ifndef __AUDIT_LAUNCHD_LABEL -#define __AUDIT_LAUNCHD_LABEL "org.trustedbsd.auditd" +#define __AUDIT_LAUNCHD_LABEL "com.apple.auditd" #endif /* __AUDIT_LAUNCHD_LABEL */ #define MAX_MSG_SIZE 4096 @@ -100,7 +100,7 @@ auditd_openlog(int debug, gid_t gid) if (debug) opt = ASL_OPT_STDERR; - au_aslclient = asl_open("auditd", "org.trustedbsd.auditd", opt); + au_aslclient = asl_open("auditd", "com.apple.auditd", opt); au_aslmsg = asl_new(ASL_TYPE_MSG); #ifdef ASL_KEY_READ_UID Modified: projects/mips/contrib/openbsm/bin/auditd/auditd_fbsd.c ============================================================================== --- projects/mips/contrib/openbsm/bin/auditd/auditd_fbsd.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bin/auditd/auditd_fbsd.c Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_fbsd.c#1 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditd/auditd_fbsd.c#2 $ */ #include @@ -35,9 +35,11 @@ #include #include +#include #include +#include #include -#include +#include #include #include Modified: projects/mips/contrib/openbsm/bin/auditreduce/auditreduce.c ============================================================================== --- projects/mips/contrib/openbsm/bin/auditreduce/auditreduce.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bin/auditreduce/auditreduce.c Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#29 $ + * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#31 $ */ /* @@ -41,6 +41,9 @@ */ #include + +#define _GNU_SOURCE /* Required for strptime() on glibc2. */ + #ifdef HAVE_FULL_QUEUE_H #include #else Modified: projects/mips/contrib/openbsm/bsm/auditd_lib.h ============================================================================== --- projects/mips/contrib/openbsm/bsm/auditd_lib.h Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bsm/auditd_lib.h Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bsm/auditd_lib.h#2 $ + * $P4: //depot/projects/trustedbsd/openbsm/bsm/auditd_lib.h#3 $ */ #ifndef _BSM_AUDITD_LIB_H_ @@ -57,7 +57,7 @@ * Path of auditd plist file for launchd. */ #define AUDITD_PLIST_FILE \ - "/System/Library/LaunchDaemons/org.trustedbsd.auditd.plist" + "/System/Library/LaunchDaemons/com.apple.auditd.plist" /* * Error return codes for auditd_lib functions. Modified: projects/mips/contrib/openbsm/bsm/libbsm.h ============================================================================== --- projects/mips/contrib/openbsm/bsm/libbsm.h Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/bsm/libbsm.h Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#40 $ + * $P4: //depot/projects/trustedbsd/openbsm/bsm/libbsm.h#41 $ */ #ifndef _LIBBSM_H_ @@ -821,14 +821,22 @@ void au_print_tok_xml(FILE *outfp, to */ void au_print_xml_header(FILE *outfp); void au_print_xml_footer(FILE *outfp); -__END_DECLS /* - * Functions relating to BSM<->errno conversion. - */ -int au_bsm_to_errno(u_char bsm_error, int *errorp); -u_char au_errno_to_bsm(int error); -const char *au_strerror(u_char bsm_error); + * BSM library routines for converting between local and BSM constant spaces. + * (Note: some of these are replicated in audit_record.h for the benefit of + * the FreeBSD and Mac OS X kernels) + */ +int au_bsm_to_domain(u_short bsm_domain, int *local_domainp); +int au_bsm_to_errno(u_char bsm_error, int *errorp); +int au_bsm_to_socket_type(u_short bsm_socket_type, + int *local_socket_typep); +u_short au_domain_to_bsm(int local_domain); +u_char au_errno_to_bsm(int local_errno); +u_short au_socket_type_to_bsm(int local_socket_type); + +const char *au_strerror(u_char bsm_error); +__END_DECLS /* * The remaining APIs are associated with Apple's BSM implementation, in Modified: projects/mips/contrib/openbsm/configure ============================================================================== --- projects/mips/contrib/openbsm/configure Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/configure Sun Jan 18 05:23:26 2009 (r187377) @@ -1,7 +1,7 @@ #! /bin/sh -# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#47 . +# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#49 . # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.61 for OpenBSM 1.1alpha4. +# Generated by GNU Autoconf 2.61 for OpenBSM 1.1alpha5. # # Report bugs to . # @@ -729,8 +729,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='OpenBSM' PACKAGE_TARNAME='openbsm' -PACKAGE_VERSION='1.1alpha4' -PACKAGE_STRING='OpenBSM 1.1alpha4' +PACKAGE_VERSION='1.1alpha5' +PACKAGE_STRING='OpenBSM 1.1alpha5' PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org' ac_unique_file="bin/auditreduce/auditreduce.c" @@ -1404,7 +1404,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures OpenBSM 1.1alpha4 to adapt to many kinds of systems. +\`configure' configures OpenBSM 1.1alpha5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1474,7 +1474,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of OpenBSM 1.1alpha4:";; + short | recursive ) echo "Configuration of OpenBSM 1.1alpha5:";; esac cat <<\_ACEOF @@ -1580,7 +1580,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -OpenBSM configure 1.1alpha4 +OpenBSM configure 1.1alpha5 generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1594,7 +1594,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by OpenBSM $as_me 1.1alpha4, which was +It was created by OpenBSM $as_me 1.1alpha5, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ @@ -19076,7 +19076,7 @@ fi # Define the identity of the package. PACKAGE=OpenBSM - VERSION=1.1alpha4 + VERSION=1.1alpha5 cat >>confdefs.h <<_ACEOF @@ -23584,7 +23584,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by OpenBSM $as_me 1.1alpha4, which was +This file was extended by OpenBSM $as_me 1.1alpha5, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -23637,7 +23637,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -OpenBSM config.status 1.1alpha4 +OpenBSM config.status 1.1alpha5 configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Modified: projects/mips/contrib/openbsm/configure.ac ============================================================================== --- projects/mips/contrib/openbsm/configure.ac Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/configure.ac Sun Jan 18 05:23:26 2009 (r187377) @@ -2,8 +2,8 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([OpenBSM], [1.1alpha4], [trustedbsd-audit@TrustesdBSD.org],[openbsm]) -AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#48 $]) +AC_INIT([OpenBSM], [1.1alpha5], [trustedbsd-audit@TrustesdBSD.org],[openbsm]) +AC_REVISION([$P4: //depot/projects/trustedbsd/openbsm/configure.ac#49 $]) AC_CONFIG_SRCDIR([bin/auditreduce/auditreduce.c]) AC_CONFIG_AUX_DIR(config) AC_CONFIG_HEADER([config/config.h]) Modified: projects/mips/contrib/openbsm/libauditd/Makefile.am ============================================================================== --- projects/mips/contrib/openbsm/libauditd/Makefile.am Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/libauditd/Makefile.am Sun Jan 18 05:23:26 2009 (r187377) @@ -1,5 +1,5 @@ # -# $P4: //depot/projects/trustedbsd/openbsm/libauditd/Makefile.am#1 $ +# $P4: //depot/projects/trustedbsd/openbsm/libauditd/Makefile.am#2 $ # if USE_NATIVE_INCLUDES @@ -13,5 +13,5 @@ lib_LTLIBRARIES = libauditd.la libauditd_la_SOURCES = \ auditd_lib.c -#man3_MANS = \ -# libauditd.3 +man3_MANS = \ + libauditd.3 Modified: projects/mips/contrib/openbsm/libauditd/Makefile.in ============================================================================== --- projects/mips/contrib/openbsm/libauditd/Makefile.in Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/libauditd/Makefile.in Sun Jan 18 05:23:26 2009 (r187377) @@ -15,7 +15,7 @@ @SET_MAKE@ # -# $P4: //depot/projects/trustedbsd/openbsm/libauditd/Makefile.in#1 $ +# $P4: //depot/projects/trustedbsd/openbsm/libauditd/Makefile.in#2 $ # VPATH = @srcdir@ @@ -51,7 +51,7 @@ am__vpath_adj = case $$p in \ *) f=$$p;; \ esac; am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(libdir)" +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)" libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libauditd_la_LIBADD = @@ -71,6 +71,9 @@ LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLF $(LDFLAGS) -o $@ SOURCES = $(libauditd_la_SOURCES) DIST_SOURCES = $(libauditd_la_SOURCES) +man3dir = $(mandir)/man3 +NROFF = nroff +MANS = $(man3_MANS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -188,6 +191,9 @@ lib_LTLIBRARIES = libauditd.la libauditd_la_SOURCES = \ auditd_lib.c +man3_MANS = \ + libauditd.3 + all: all-am .SUFFIXES: @@ -285,6 +291,51 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs +install-man3: $(man3_MANS) $(man_MANS) + @$(NORMAL_INSTALL) + test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)" + @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.3*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ + else file=$$i; fi; \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 3*) ;; \ + *) ext='3' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \ + done +uninstall-man3: + @$(NORMAL_UNINSTALL) + @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \ + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ + for i in $$l2; do \ + case "$$i" in \ + *.3*) list="$$list $$i" ;; \ + esac; \ + done; \ + for i in $$list; do \ + ext=`echo $$i | sed -e 's/^.*\\.//'`; \ + case "$$ext" in \ + 3*) ;; \ + *) ext='3' ;; \ + esac; \ + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ + inst=`echo $$inst | sed -e 's/^.*\///'`; \ + inst=`echo $$inst | sed '$(transform)'`.$$ext; \ + echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man3dir)/$$inst"; \ + done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ @@ -362,9 +413,9 @@ distdir: $(DISTFILES) done check-am: all-am check: check-am -all-am: Makefile $(LTLIBRARIES) +all-am: Makefile $(LTLIBRARIES) $(MANS) installdirs: - for dir in "$(DESTDIR)$(libdir)"; do \ + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(man3dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am @@ -412,7 +463,7 @@ info: info-am info-am: -install-data-am: +install-data-am: install-man install-dvi: install-dvi-am @@ -422,7 +473,7 @@ install-html: install-html-am install-info: install-info-am -install-man: +install-man: install-man3 install-pdf: install-pdf-am @@ -448,7 +499,9 @@ ps: ps-am ps-am: -uninstall-am: uninstall-libLTLIBRARIES +uninstall-am: uninstall-libLTLIBRARIES uninstall-man + +uninstall-man: uninstall-man3 .MAKE: install-am install-strip @@ -459,16 +512,14 @@ uninstall-am: uninstall-libLTLIBRARIES install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am \ - install-libLTLIBRARIES install-man install-pdf install-pdf-am \ - install-ps install-ps-am install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ + install-libLTLIBRARIES install-man install-man3 install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-libLTLIBRARIES - + tags uninstall uninstall-am uninstall-libLTLIBRARIES \ + uninstall-man uninstall-man3 -#man3_MANS = \ -# libauditd.3 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: Modified: projects/mips/contrib/openbsm/libauditd/auditd_lib.c ============================================================================== --- projects/mips/contrib/openbsm/libauditd/auditd_lib.c Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/libauditd/auditd_lib.c Sun Jan 18 05:23:26 2009 (r187377) @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#1 $ + * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#2 $ */ #include @@ -823,7 +823,7 @@ audit_quick_stop(void) */ if (auditon(A_GETCOND, &cond, sizeof(cond)) < 0) return (-1); - if (cond == AUC_DISABLED) + if (cond == AUC_NOAUDIT) return (0); /* Copied: projects/mips/contrib/openbsm/libauditd/libauditd.3 (from r187376, head/contrib/openbsm/libauditd/libauditd.3) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/mips/contrib/openbsm/libauditd/libauditd.3 Sun Jan 18 05:23:26 2009 (r187377, copy of r187376, head/contrib/openbsm/libauditd/libauditd.3) @@ -0,0 +1,60 @@ +.\"- +.\" Copyright (c) 2008 Apple Inc. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of Apple Inc. ("Apple") nor the names of +.\" its contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR +.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.\" $P4: //depot/projects/trustedbsd/openbsm/libauditd/libauditd.3#1 $ +.\" +.Dd December 27, 2008 +.Dt LIBAUDITD 3 +.Os +.Sh NAME +.Nm libauditd +.Nd "auditd support library" +.Sh LIBRARY +.Lb libauditd +.Sh DESCRIPTION +The +.Nm +library provides the internal implementation of +.Xr auditd 8 . +.Sh INTERFACES +There are no public interfaces in +.Nm . +.Sh SEE ALSO +.Xr auditd 8 . +.Sh HISTORY +The OpenBSM implementation was created by McAfee Research, the security +division of McAfee Inc., under contract to Apple Computer, Inc., in 2004. +It was subsequently adopted by the TrustedBSD Project as the foundation for +the OpenBSM distribution. +.Sh AUTHORS +.An -nosplit +This software was created by +.An Stacey Son . +.Pp +The Basic Security Module (BSM) interface to audit records and audit event +stream format were defined by Sun Microsystems. Modified: projects/mips/contrib/openbsm/libbsm/Makefile.am ============================================================================== --- projects/mips/contrib/openbsm/libbsm/Makefile.am Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/libbsm/Makefile.am Sun Jan 18 05:23:26 2009 (r187377) @@ -1,5 +1,5 @@ # -# $P4: //depot/projects/trustedbsd/openbsm/libbsm/Makefile.am#7 $ +# $P4: //depot/projects/trustedbsd/openbsm/libbsm/Makefile.am#8 $ # if USE_NATIVE_INCLUDES @@ -14,11 +14,13 @@ libbsm_la_SOURCES = \ bsm_audit.c \ bsm_class.c \ bsm_control.c \ + bsm_domain.c \ bsm_errno.c \ bsm_event.c \ bsm_flags.c \ bsm_io.c \ bsm_mask.c \ + bsm_socket_type.c \ bsm_token.c \ bsm_user.c @@ -31,12 +33,14 @@ endif man3_MANS = \ au_class.3 \ au_control.3 \ + au_domain.3 \ au_errno.3 \ au_event.3 \ au_free_token.3 \ au_io.3 \ au_mask.3 \ au_open.3 \ + au_socket_type.3 \ au_token.3 \ au_user.3 \ libbsm.3 Modified: projects/mips/contrib/openbsm/libbsm/Makefile.in ============================================================================== --- projects/mips/contrib/openbsm/libbsm/Makefile.in Sun Jan 18 04:49:01 2009 (r187376) +++ projects/mips/contrib/openbsm/libbsm/Makefile.in Sun Jan 18 05:23:26 2009 (r187377) @@ -15,7 +15,7 @@ @SET_MAKE@ # -# $P4: //depot/projects/trustedbsd/openbsm/libbsm/Makefile.in#12 $ +# $P4: //depot/projects/trustedbsd/openbsm/libbsm/Makefile.in#13 $ # VPATH = @srcdir@ @@ -60,13 +60,15 @@ libLTLIBRARIES_INSTALL = $(INSTALL) LTLIBRARIES = $(lib_LTLIBRARIES) libbsm_la_LIBADD = am__libbsm_la_SOURCES_DIST = bsm_audit.c bsm_class.c bsm_control.c \ - bsm_errno.c bsm_event.c bsm_flags.c bsm_io.c bsm_mask.c \ - bsm_token.c bsm_user.c bsm_notify.c bsm_wrappers.c + bsm_domain.c bsm_errno.c bsm_event.c bsm_flags.c bsm_io.c \ + bsm_mask.c bsm_socket_type.c bsm_token.c bsm_user.c \ + bsm_notify.c bsm_wrappers.c @HAVE_AUDIT_SYSCALLS_TRUE@am__objects_1 = bsm_notify.lo \ @HAVE_AUDIT_SYSCALLS_TRUE@ bsm_wrappers.lo am_libbsm_la_OBJECTS = bsm_audit.lo bsm_class.lo bsm_control.lo \ - bsm_errno.lo bsm_event.lo bsm_flags.lo bsm_io.lo bsm_mask.lo \ - bsm_token.lo bsm_user.lo $(am__objects_1) + bsm_domain.lo bsm_errno.lo bsm_event.lo bsm_flags.lo bsm_io.lo \ + bsm_mask.lo bsm_socket_type.lo bsm_token.lo bsm_user.lo \ + $(am__objects_1) libbsm_la_OBJECTS = $(am_libbsm_la_OBJECTS) DEFAULT_INCLUDES = -I. -I$(top_builddir)/config@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/config/depcomp @@ -199,18 +201,20 @@ top_srcdir = @top_srcdir@ @USE_NATIVE_INCLUDES_FALSE@INCLUDES = -I$(top_builddir) -I$(top_srcdir) -I$(top_srcdir)/sys @USE_NATIVE_INCLUDES_TRUE@INCLUDES = -I$(top_builddir) -I$(top_srcdir) lib_LTLIBRARIES = libbsm.la -libbsm_la_SOURCES = bsm_audit.c bsm_class.c bsm_control.c bsm_errno.c \ - bsm_event.c bsm_flags.c bsm_io.c bsm_mask.c bsm_token.c \ - bsm_user.c $(am__append_1) +libbsm_la_SOURCES = bsm_audit.c bsm_class.c bsm_control.c bsm_domain.c \ + bsm_errno.c bsm_event.c bsm_flags.c bsm_io.c bsm_mask.c \ + bsm_socket_type.c bsm_token.c bsm_user.c $(am__append_1) man3_MANS = \ au_class.3 \ au_control.3 \ + au_domain.3 \ au_errno.3 \ au_event.3 \ au_free_token.3 \ au_io.3 \ au_mask.3 \ au_open.3 \ + au_socket_type.3 \ au_token.3 \ au_user.3 \ libbsm.3 @@ -287,12 +291,14 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_audit.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_class.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_control.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_domain.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_errno.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_event.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_flags.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_io.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_mask.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_notify.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_socket_type.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_token.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_user.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bsm_wrappers.Plo@am__quote@ Copied: projects/mips/contrib/openbsm/libbsm/au_domain.3 (from r187376, head/contrib/openbsm/libbsm/au_domain.3) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/mips/contrib/openbsm/libbsm/au_domain.3 Sun Jan 18 05:23:26 2009 (r187377, copy of r187376, head/contrib/openbsm/libbsm/au_domain.3) @@ -0,0 +1,87 @@ +.\"- +.\" Copyright (c) 2008 Apple Inc. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of Apple Inc. ("Apple") nor the names of +.\" its contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR +.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_domain.3#1 $ +.\" +.Dd December 28, 2008 +.Dt AU_BSM_TO_DOMAIN 3 +.Os +.Sh NAME +.Nm au_bsm_to_domain , +.Nm au_domain_to_bsm +.Nd "convert between BSM and local protocol domains" +.Sh LIBRARY +.Lb libbsm +.Sh SYNOPSIS +.In bsm/libbsm.h +.Ft int +.Fn au_bsm_to_domain "u_short bsm_domain" "int *local_domainp" +.Ft u_short +.Fn au_domain_to_bsm "int local_domain" +.Sh DESCRIPTION +These interfaces may be used to convert between the local and BSM protocol +domains. +The +.Fn au_bsm_to_domain +function accepts a BSM domain, +.Fa bsm_domain , +and converts it to a local domain, such as those passed to +.Xr socket 2 , +that will be stored in the integer pointed to by +.Fa local_domainp +if successful. +This call will fail if the BSM domain cannot be mapped into a local domain, +which may occur if the socket token was generated on another operating +system. +.Pp +.Fn au_domain_to_bsm +function accepts a local domain, and returns the BSM domain for it. +This call cannot fail, and instead returns a BSM domain indicating to a later +decoder that the domain could not be encoded. +.Sh RETURN VALULES +On success, +.Fn au_bsm_to_domain +returns 0 and a converted domain; on failure, it returns -1 but does not set +.Xr errno 2 . +.Sh SEE ALSO +.Xr au_bsm_to_socket_type 3 , +.Xr au_socket_type_to_bsm 3 , +.Xr au_to_socket_ex 3 , +.Xr libbsm 3 +.Sh HISTORY +.Fn au_bsm_to_domain +and +.Fn au_domain_to_bsm +were introduced in OpenBSM 1.1. +.Sh AUTHORS +These functions were implemented by +.An Robert Watson +under contract to Apple Inc. +.Pp +The Basic Security Module (BSM) interface to audit records and audit event +stream format were defined by Sun Microsystems. Copied: projects/mips/contrib/openbsm/libbsm/au_socket_type.3 (from r187376, head/contrib/openbsm/libbsm/au_socket_type.3) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ projects/mips/contrib/openbsm/libbsm/au_socket_type.3 Sun Jan 18 05:23:26 2009 (r187377, copy of r187376, head/contrib/openbsm/libbsm/au_socket_type.3) @@ -0,0 +1,93 @@ +.\"- +.\" Copyright (c) 2008 Apple Inc. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" 3. Neither the name of Apple Inc. ("Apple") nor the names of +.\" its contributors may be used to endorse or promote products derived +.\" from this software without specific prior written permission. +.\" +.\" THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR +.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.\" $P4: //depot/projects/trustedbsd/openbsm/libbsm/au_socket_type.3#1 $ +.\" +.Dd December 28, 2008 +.Dt AU_BSM_TO_SOCKET_TYPE 3 +.Os +.Sh NAME +.Nm au_bsm_to_socket_type , +.Nm au_socket_type_to_bsm +.Nd "convert between BSM and local socket types" +.Sh LIBRARY +.Lb libbsm +.Sh SYNOPSIS +.In bsm/libbsm.h +.Ft int +.Fn au_bsm_to_socket_type "u_short bsm_socket_type" "int *local_socket_typep" +.Ft u_short +.Fn au_socket_type_to_bsm "int local_socket_type" +.Sh DESCRIPTION +These interfaces may be used to convert between the local and BSM socket +types. +The +.Fn au_bsm_to_socket_type +function accepts a BSM socket type, +.Fa bsm_socket_type , +and converts it to a local socket type, such as those passed to +.Xr socket 2 , +that will be stored in the integer pointed to by +.Fa local_socket_typep +if successful. +This call will fail if the BSM socket type cannot be mapped into a local +socket type, which may occur if the socket token was generated on another +operating system. +.Pp +.Fn au_socket_type_to_bsm +function accepts a local socket type, and returns the BSM socket type for it. +This call cannot fail, and instead returns a BSM socket type indicating to a +later decoder that the socket type could not be encoded. +.Sh RETURN VALULES +On success, +.Fn au_bsm_to_socket_type +returns 0 and a converted socket type; on failure, it returns -1 but does not +set +.Xr errno 2 . +.Pp +On success, +.Fn au_strerror +returns a pointer to an error string; on failure it will return +.Dv NULL . *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***