Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2009 12:22:00 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189532 - head/sys/security/mac
Message-ID:  <200903081222.n28CM0IX083204@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sun Mar  8 12:22:00 2009
New Revision: 189532
URL: http://svn.freebsd.org/changeset/base/189532

Log:
  Rename 'ucred' argument to mac_socket_check_bind() to 'cred' to match
  other use of the same variable type.
  
  Obtained from:	TrustedBSD Project
  Sponsored by:	Google, Inc.

Modified:
  head/sys/security/mac/mac_socket.c

Modified: head/sys/security/mac/mac_socket.c
==============================================================================
--- head/sys/security/mac/mac_socket.c	Sun Mar  8 11:20:54 2009	(r189531)
+++ head/sys/security/mac/mac_socket.c	Sun Mar  8 12:22:00 2009	(r189532)
@@ -301,15 +301,15 @@ MAC_CHECK_PROBE_DEFINE3(socket_check_bin
     "struct socket *", "struct sockaddr *");
 
 int
-mac_socket_check_bind(struct ucred *ucred, struct socket *so,
+mac_socket_check_bind(struct ucred *cred, struct socket *so,
     struct sockaddr *sa)
 {
 	int error;
 
 	SOCK_LOCK_ASSERT(so);
 
-	MAC_CHECK(socket_check_bind, ucred, so, so->so_label, sa);
-	MAC_CHECK_PROBE3(socket_check_bind, error, ucred, so, sa);
+	MAC_CHECK(socket_check_bind, cred, so, so->so_label, sa);
+	MAC_CHECK_PROBE3(socket_check_bind, error, cred, so, sa);
 
 	return (error);
 }



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