summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-12-17 17:26:32 +0000
committerrwatson <rwatson@FreeBSD.org>2007-12-17 17:26:32 +0000
commit658a0a8d459bf1cccdeb0f005b45156ae7205770 (patch)
tree3707f2cb12039892d2dfb79bb96416e61b26e943
parent4a0d85f1d46c99289fe053772a2145c69a511a40 (diff)
downloadFreeBSD-src-658a0a8d459bf1cccdeb0f005b45156ae7205770.zip
FreeBSD-src-658a0a8d459bf1cccdeb0f005b45156ae7205770.tar.gz
Fix a MAC label leak for POSIX semaphores, in which per-policy labels
would be properly disposed of, but the global label structure for the semaphore wouldn't be freed. MFC after: 3 days Reported by: tanyong <tanyong at ercist dot iscas dot ac dot cn>, zhouzhouyi
-rw-r--r--sys/security/mac/mac_posix_sem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/security/mac/mac_posix_sem.c b/sys/security/mac/mac_posix_sem.c
index 2ea3c72..4b40142 100644
--- a/sys/security/mac/mac_posix_sem.c
+++ b/sys/security/mac/mac_posix_sem.c
@@ -72,6 +72,7 @@ mac_posixsem_label_free(struct label *label)
{
MAC_PERFORM(posixsem_destroy_label, label);
+ mac_labelzone_free(label);
}
void
OpenPOWER on IntegriCloud