summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-11-03 17:58:23 +0000
committerrwatson <rwatson@FreeBSD.org>2003-11-03 17:58:23 +0000
commit95e56a059ac923becc892509739a52c464874252 (patch)
tree5bd9b8fa272d01e29df23d6d69a01c701ae93e23
parentc5a32d4605626f00a1623a1a79c0c7a26fbbf910 (diff)
downloadFreeBSD-src-95e56a059ac923becc892509739a52c464874252.zip
FreeBSD-src-95e56a059ac923becc892509739a52c464874252.tar.gz
Unlock pipe mutex when failing MAC pipe ioctl access control check.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
-rw-r--r--sys/kern/sys_pipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 5044432..3182384 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1191,8 +1191,10 @@ pipe_ioctl(fp, cmd, data, active_cred, td)
#ifdef MAC
error = mac_check_pipe_ioctl(active_cred, mpipe, cmd, data);
- if (error)
+ if (error) {
+ PIPE_UNLOCK(mpipe);
return (error);
+ }
#endif
switch (cmd) {
OpenPOWER on IntegriCloud