diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-12-17 17:26:32 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-12-17 17:26:32 +0000 |
commit | 658a0a8d459bf1cccdeb0f005b45156ae7205770 (patch) | |
tree | 3707f2cb12039892d2dfb79bb96416e61b26e943 /sys/security/mac | |
parent | 4a0d85f1d46c99289fe053772a2145c69a511a40 (diff) | |
download | FreeBSD-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
Diffstat (limited to 'sys/security/mac')
-rw-r--r-- | sys/security/mac/mac_posix_sem.c | 1 |
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 |