aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-10-22 09:30:32 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-10-22 09:30:32 +0000
commit41cadec500d30cd2706b4b8534be042ab73c51bc (patch)
tree5967a96225a6842cba32cd034736fa2c1d11f7c7 /sys
parentab1941d8f535c70ab7536f0990d96e1cc49942a4 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/security/mac_partition/mac_partition.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac_partition/mac_partition.c b/sys/security/mac_partition/mac_partition.c
index fe3d8e81677d..b571e4ef5444 100644
--- a/sys/security/mac_partition/mac_partition.c
+++ b/sys/security/mac_partition/mac_partition.c
@@ -244,7 +244,7 @@ mac_partition_check_socket_visible(struct ucred *cred, struct socket *socket,
{
int error;
- error = label_on_label(cred->cr_label, socketlabel);
+ error = label_on_label(cred->cr_label, socket->so_cred->cr_label);
return (error ? ENOENT : 0);
}