cvs commit: src/sys/security/audit audit_bsm.c

Robert Watson rwatson at FreeBSD.org
Fri Feb 3 16:14:07 PST 2006


rwatson     2006-02-04 00:14:06 UTC

  FreeBSD src repository

  Modified files:
    sys/security/audit   audit_bsm.c 
  Log:
  Cast pointers to (uintptr_t) before down-casting to (int).  This avoids
  an incompatible conversion from a 64-bit pointer to a 32-bit integer on
  64-bit platforms.  We will investigate whether Solaris uses a 64-bit
  token here, or a new record here, in order to avoid truncating user
  pointers that are 64-bit.  However, in the mean time, truncation is fine
  as these are rarely/never used fields in audit records.
  
  Obtained from:  TrustedBSD Project
  
  Revision  Changes    Path
  1.2       +8 -7      src/sys/security/audit/audit_bsm.c


More information about the cvs-all mailing list