Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2018 14:06:09 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r337243 - stable/11/sys/security/audit
Message-ID:  <201808031406.w73E69b9064715@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Fri Aug  3 14:06:08 2018
New Revision: 337243
URL: https://svnweb.freebsd.org/changeset/base/337243

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/11/sys/security/audit/audit_syscalls.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/security/audit/audit_syscalls.c
==============================================================================
--- stable/11/sys/security/audit/audit_syscalls.c	Fri Aug  3 14:05:22 2018	(r337242)
+++ stable/11/sys/security/audit/audit_syscalls.c	Fri Aug  3 14:06:08 2018	(r337243)
@@ -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) ==



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808031406.w73E69b9064715>