aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2008-04-19 18:37:08 +0000
committerRobert Watson <rwatson@FreeBSD.org>2008-04-19 18:37:08 +0000
commit1a46aa801e1262e02fac68567bf834ddea762df0 (patch)
treeb4362171a770515e2b21e7d469ea0c89543e40a5 /sys/security
parent211b72ad2f0fe17b59a0477765b56290109da309 (diff)
Notes
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_arg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit_arg.c b/sys/security/audit/audit_arg.c
index ffdfde6c1909..939c7da66489 100644
--- a/sys/security/audit/audit_arg.c
+++ b/sys/security/audit/audit_arg.c
@@ -649,7 +649,7 @@ audit_arg_file(struct proc *p, struct file *fp)
so->so_proto->pr_protocol;
SOCK_UNLOCK(so);
pcb = (struct inpcb *)so->so_pcb;
- INP_WLOCK(pcb);
+ INP_RLOCK(pcb);
ar->k_ar.ar_arg_sockinfo.so_raddr =
pcb->inp_faddr.s_addr;
ar->k_ar.ar_arg_sockinfo.so_laddr =
@@ -658,7 +658,7 @@ audit_arg_file(struct proc *p, struct file *fp)
pcb->inp_fport;
ar->k_ar.ar_arg_sockinfo.so_lport =
pcb->inp_lport;
- INP_WUNLOCK(pcb);
+ INP_RUNLOCK(pcb);
ARG_SET_VALID(ar, ARG_SOCKINFO);
}
break;