summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/mac_text.3
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-11-16 04:32:46 +0000
committerrwatson <rwatson@FreeBSD.org>2003-11-16 04:32:46 +0000
commit6d8eca04b917ea8755d3adc02e4cd9a5b2f961e8 (patch)
treeafee6de8f05d981bf00430a0db5abd9983760761 /lib/libc/posix1e/mac_text.3
parent506b812053d08854bf611e0b046315695c9e8b4e (diff)
downloadFreeBSD-src-6d8eca04b917ea8755d3adc02e4cd9a5b2f961e8.zip
FreeBSD-src-6d8eca04b917ea8755d3adc02e4cd9a5b2f961e8.tar.gz
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
Diffstat (limited to 'lib/libc/posix1e/mac_text.3')
-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 56208d2..f6a04af 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 ,
OpenPOWER on IntegriCloud