PERFORCE change 58414 for review

Wayne Salamon wsalamon at FreeBSD.org
Wed Jul 28 18:38:05 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=58414

Change 58414 by wsalamon at wsalamon_epi on 2004/07/29 01:37:52

	Unlock the proc struct after using the pfind() function in the audit 
	system calls.

Affected files ...

.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#6 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#6 (text+ko) ====

@@ -902,6 +902,7 @@
 		udata.au_aupinfo.ap_termid.port = 
 			tp->p_au->ai_termid.port;
 		udata.au_aupinfo.ap_asid = tp->p_au->ai_asid;
+		PROC_UNLOCK(tp);
 		break;
 	case A_SETPMASK:
 		if (udata.au_aupinfo.ap_pid < 1) 
@@ -913,6 +914,7 @@
 			udata.au_aupinfo.ap_mask.am_success;
 		tp->p_au->ai_mask.am_failure = 
 			udata.au_aupinfo.ap_mask.am_failure;
+		PROC_UNLOCK(tp);
 		break;
 	case A_SETFSIZE:
 		if ((udata.au_fstat.af_filesz != 0) &&


More information about the p4-projects mailing list