PERFORCE change 113341 for review

Todd Miller millert at FreeBSD.org
Mon Jan 22 16:00:42 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113341

Change 113341 by millert at 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)
 {


More information about the trustedbsd-cvs mailing list