svn commit: r337122 - stable/11/sys/security/audit
Andriy Gapon
avg at FreeBSD.org
Thu Aug 2 09:31:51 UTC 2018
Author: avg
Date: Thu Aug 2 09:31:50 2018
New Revision: 337122
URL: https://svnweb.freebsd.org/changeset/base/337122
Log:
MFC r336641: fix incorrect operator in the AUDITPIPE_SET_QLIMIT bounds check
Modified:
stable/11/sys/security/audit/audit_pipe.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/security/audit/audit_pipe.c
==============================================================================
--- stable/11/sys/security/audit/audit_pipe.c Thu Aug 2 09:29:39 2018 (r337121)
+++ stable/11/sys/security/audit/audit_pipe.c Thu Aug 2 09:31:50 2018 (r337122)
@@ -756,7 +756,7 @@ audit_pipe_ioctl(struct cdev *dev, u_long cmd, caddr_t
case AUDITPIPE_SET_QLIMIT:
/* Lockless integer write. */
- if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN ||
+ if (*(u_int *)data >= AUDIT_PIPE_QLIMIT_MIN &&
*(u_int *)data <= AUDIT_PIPE_QLIMIT_MAX) {
ap->ap_qlimit = *(u_int *)data;
error = 0;
More information about the svn-src-all
mailing list