Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2007 15:56:32 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 113341 for review
Message-ID:  <200701221556.l0MFuWUI024432@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113341

Change 113341 by millert@millert_macbook on 2007/01/22 15:56:11

	Constify the name parameter of security_netif_sid() since
	ifnet_name() returns const char *.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/ss/security.h#4 edit
.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/ss/services.c#5 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/ss/security.h#4 (text+ko) ====

@@ -74,7 +74,7 @@
 int security_port_sid(u16 domain, u16 type, u8 protocol, u16 port,
 	u32 *out_sid);
 
-int security_netif_sid(char *name, u32 *if_sid,
+int security_netif_sid(const char *name, u32 *if_sid,
 	u32 *msg_sid);
 
 int security_node_sid(u16 domain, void *addr, u32 addrlen,

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/ss/services.c#5 (text+ko) ====

@@ -1377,7 +1377,7 @@
  * @if_sid: interface SID
  * @msg_sid: default SID for received packets
  */
-int security_netif_sid(char *name,
+int security_netif_sid(const char *name,
 		       u32 *if_sid,
 		       u32 *msg_sid)
 {



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