summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_net.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-10-25 15:28:20 +0000
committerrwatson <rwatson@FreeBSD.org>2003-10-25 15:28:20 +0000
commit2e83725f4a390d62e44488987ceae30617d39f03 (patch)
tree689128a35013112f2e1a02fafd158a5ad5cc11a9 /sys/security/mac/mac_net.c
parente7ca1c45525f573e36727f7c4626f584f01c2427 (diff)
downloadFreeBSD-src-2e83725f4a390d62e44488987ceae30617d39f03.zip
FreeBSD-src-2e83725f4a390d62e44488987ceae30617d39f03.tar.gz
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
Diffstat (limited to 'sys/security/mac/mac_net.c')
-rw-r--r--sys/security/mac/mac_net.c10
1 files changed, 5 insertions, 5 deletions
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);
}
OpenPOWER on IntegriCloud