svn commit: r280121 - head/sys/security/audit
Mateusz Guzik
mjg at FreeBSD.org
Sun Mar 15 21:43:45 UTC 2015
Author: mjg
Date: Sun Mar 15 21:43:43 2015
New Revision: 280121
URL: https://svnweb.freebsd.org/changeset/base/280121
Log:
audit: fix cred assignment when A_SETPMASK is used
The code used to modify curproc instead of the target process.
Discussed with: rwatson
MFC after: 3 days
Modified:
head/sys/security/audit/audit_syscalls.c
Modified: head/sys/security/audit/audit_syscalls.c
==============================================================================
--- head/sys/security/audit/audit_syscalls.c Sun Mar 15 21:32:11 2015 (r280120)
+++ head/sys/security/audit/audit_syscalls.c Sun Mar 15 21:43:43 2015 (r280121)
@@ -461,7 +461,7 @@ sys_auditon(struct thread *td, struct au
udata.au_aupinfo.ap_mask.am_success;
newcred->cr_audit.ai_mask.am_failure =
udata.au_aupinfo.ap_mask.am_failure;
- td->td_proc->p_ucred = newcred;
+ tp->p_ucred = newcred;
PROC_UNLOCK(tp);
crfree(oldcred);
break;
More information about the svn-src-all
mailing list