svn commit: r337259 - stable/10/sys/security/audit
Alan Somers
asomers at FreeBSD.org
Fri Aug 3 14:47:48 UTC 2018
Author: asomers
Date: Fri Aug 3 14:47:47 2018
New Revision: 337259
URL: https://svnweb.freebsd.org/changeset/base/337259
Log:
MFC r336319:
auditon(2): fix A_SETPOLICY with 64-bit values
A_SETPOLICY is supposed to work with either 64 or 32-bit values, but due to a
typo the 64-bit version has never worked correctly.
Submitted by: aniketp
Reviewed by: asomers, cem
Sponsored by: Google, Inc. (GSoC 2018)
Differential Revision: https://reviews.freebsd.org/D16222
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 Fri Aug 3 14:45:53 2018 (r337258)
+++ stable/10/sys/security/audit/audit_syscalls.c Fri Aug 3 14:47:47 2018 (r337259)
@@ -241,7 +241,7 @@ sys_auditon(struct thread *td, struct auditon_args *ua
case A_OLDSETPOLICY:
case A_SETPOLICY:
if (uap->length == sizeof(udata.au_policy64)) {
- if (udata.au_policy & (~AUDIT_CNT|AUDIT_AHLT|
+ if (udata.au_policy & ~(AUDIT_CNT|AUDIT_AHLT|
AUDIT_ARGV|AUDIT_ARGE))
return (EINVAL);
audit_fail_stop = ((udata.au_policy64 & AUDIT_CNT) ==
More information about the svn-src-stable-10
mailing list