From 2e83725f4a390d62e44488987ceae30617d39f03 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 25 Oct 2003 15:28:20 +0000 Subject: Make MAC_EXTERNALIZE() and MAC_INTERNALIZE() simply take the object type, rather than "object_label" as the first argument. This reduces complexity a little for the consumer, and also makes it easier for use to rename the underlying entry points in struct mac_policy_obj. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/security/mac/mac_net.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/security/mac/mac_net.c') diff --git a/sys/security/mac/mac_net.c b/sys/security/mac/mac_net.c index 143d182..27dc353 100644 --- a/sys/security/mac/mac_net.c +++ b/sys/security/mac/mac_net.c @@ -337,7 +337,7 @@ mac_externalize_ifnet_label(struct label *label, char *elements, { int error; - MAC_EXTERNALIZE(ifnet_label, label, elements, outbuf, outbuflen); + MAC_EXTERNALIZE(ifnet, label, elements, outbuf, outbuflen); return (error); } @@ -348,7 +348,7 @@ mac_externalize_socket_label(struct label *label, char *elements, { int error; - MAC_EXTERNALIZE(socket_label, label, elements, outbuf, outbuflen); + MAC_EXTERNALIZE(socket, label, elements, outbuf, outbuflen); return (error); } @@ -359,7 +359,7 @@ mac_externalize_socket_peer_label(struct label *label, char *elements, { int error; - MAC_EXTERNALIZE(socket_peer_label, label, elements, outbuf, outbuflen); + MAC_EXTERNALIZE(socket_peer, label, elements, outbuf, outbuflen); return (error); } @@ -369,7 +369,7 @@ mac_internalize_ifnet_label(struct label *label, char *string) { int error; - MAC_INTERNALIZE(ifnet_label, label, string); + MAC_INTERNALIZE(ifnet, label, string); return (error); } @@ -379,7 +379,7 @@ mac_internalize_socket_label(struct label *label, char *string) { int error; - MAC_INTERNALIZE(socket_label, label, string); + MAC_INTERNALIZE(socket, label, string); return (error); } -- cgit v1.1