mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 17:49:22 -04:00
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
This commit is contained in:
parent
e2ad437112
commit
eb0b6ba016
1 changed files with 1 additions and 1 deletions
|
|
@ -461,7 +461,7 @@ sys_auditon(struct thread *td, struct auditon_args *uap)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue