Date: Mon, 27 Jun 2016 20:38:38 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r302227 - stable/10/sys/security/audit Message-ID: <201606272038.u5RKccZY000910@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Mon Jun 27 20:38:38 2016 New Revision: 302227 URL: https://svnweb.freebsd.org/changeset/base/302227 Log: MFC r280121: audit: fix cred assignment when A_SETPMASK is used Modified: stable/10/sys/security/audit/audit_syscalls.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/security/audit/audit_syscalls.c ============================================================================== --- stable/10/sys/security/audit/audit_syscalls.c Mon Jun 27 20:31:56 2016 (r302226) +++ stable/10/sys/security/audit/audit_syscalls.c Mon Jun 27 20:38:38 2016 (r302227) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606272038.u5RKccZY000910>