Unlock pipe mutex when failing MAC pipe ioctl access control check.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
c5a32d4605
commit
95e56a059a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user