cvs commit: src/sys/security/audit audit_arg.c audit_private.h

Christian S.J. Peron csjp at FreeBSD.org
Mon Nov 6 00:15:45 UTC 2006


csjp        2006-11-06 00:15:45 UTC

  FreeBSD src repository

  Modified files:
    sys/security/audit   audit_arg.c audit_private.h 
  Log:
  Change the type of ar_arg_sockaddr from struct sockaddr to struct
  sockaddr_storage.  This structure is defined in RFC 2553 and is a more
  semantically correct structure for holding IP and IP6 sockaddr information.
  struct sockaddr is not big enough to hold all the required information for
  IP6, resulting in truncated addresses et al when auditing IP6 sockaddr
  information.
  
  We also need to assume that the sa->sa_len has been validated before the call to
  audit_arg_sockaddr() is made, otherwise it could result in a buffer overflow.
  This is being done to accommodate auditing of network related arguments (like
  connect, bind et al) that will be added soon.
  
  Discussed with: rwatson
  Obtained from:  TrustedBSD Project
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.7       +1 -2      src/sys/security/audit/audit_arg.c
  1.12      +1 -1      src/sys/security/audit/audit_private.h


More information about the cvs-src mailing list