PERFORCE change 58414 for review

Wayne Salamon wsalamon at FreeBSD.org
Thu Jul 29 01:37:59 GMT 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) &&
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list