aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/posix1e
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-11-16 04:32:46 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-11-16 04:32:46 +0000
commit5859b37843fe0e67b408027f966022e1e2ba29c1 (patch)
treeafee6de8f05d981bf00430a0db5abd9983760761 /lib/libc/posix1e
parent607e2cc177baa6937b27e0d0961582beba59b91e (diff)
downloadsrc-5859b37843fe0e67b408027f966022e1e2ba29c1.tar.gz
src-5859b37843fe0e67b408027f966022e1e2ba29c1.zip
Memory allocated by mac_to_text() must be freed using free(3) not
mac_free(3), which is used only for variables of type mac_t in the FreeBSD implementation. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Notes
Notes: svn path=/head/; revision=122777
Diffstat (limited to 'lib/libc/posix1e')
-rw-r--r--lib/libc/posix1e/mac_text.317
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libc/posix1e/mac_text.3 b/lib/libc/posix1e/mac_text.3
index 56208d207c2b..f6a04af031fa 100644
--- a/lib/libc/posix1e/mac_text.3
+++ b/lib/libc/posix1e/mac_text.3
@@ -54,7 +54,7 @@ into the internal policy label format
and places it in
.Fa *mac ,
which must later be freed with
-.Xr mac_free 3 .
+.Xr free 3 .
.Pp
The
.Fn mac_to_text
@@ -72,6 +72,19 @@ for the MAC label format.
POSIX.1e does not define
a format for text representations
of MAC labels.
+.Pp
+POSIX.1e requires that text strings allocated using
+.Fn mac_to_text
+be freed using
+.Xr mac_free 3 ;
+in the
+.Fx
+implementation, they must be freed using
+.Xr free 3 ,
+as
+.Xr mac_free 3
+is used only to free memory used for type
+.Dv mac_t .
.Sh ERRORS
.Bl -tag -width Er
.It Bq Er ENOMEM
@@ -79,8 +92,8 @@ Insufficient memory was available
to allocate internal storage.
.El
.Sh SEE ALSO
+.Xr free 3 ,
.Xr mac 3 ,
-.Xr mac_free 3 ,
.Xr mac_get 3 ,
.Xr mac_is_present_np 3 ,
.Xr mac_prepare 3 ,