diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-11-03 17:58:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-11-03 17:58:23 +0000 |
commit | 95e56a059ac923becc892509739a52c464874252 (patch) | |
tree | 5bd9b8fa272d01e29df23d6d69a01c701ae93e23 | |
parent | c5a32d4605626f00a1623a1a79c0c7a26fbbf910 (diff) | |
download | FreeBSD-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.c | 4 |
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) { |