Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Nov 2008 21:56:45 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/security/audit audit_pipe.c
Message-ID:  <200811012156.mA1Luups035604@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2008-11-01 21:56:45 UTC

  FreeBSD src repository

  Modified files:
    sys/security/audit   audit_pipe.c 
  Log:
  SVN rev 184536 on 2008-11-01 21:56:45Z by rwatson
  
  We only allow a partial read of the first record in an audit pipe
  record queue, so move the offset field from the per-record
  audit_pipe_entry structure to the audit_pipe structure.
  
  Now that we support reading more than one record at a time, add a
  new summary field to audit_pipe, ap_qbyteslen, which tracks the
  total number of bytes present in a pipe, and return that (minus
  the current offset) via FIONREAD and kqueue's data variable for
  the pending byte count rather than the number of bytes remaining
  in only the first record.
  
  Add a number of asserts to confirm that these counts and offsets
  following the expected rules.
  
  MFC after:      2 months
  Sponsored by:   Apple, Inc.
  
  Revision  Changes    Path
  1.24      +28 -15    src/sys/security/audit/audit_pipe.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811012156.mA1Luups035604>