Date: Thu, 2 Aug 2018 09:31:50 +0000 (UTC) From: Andriy Gapon <avg@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: r337122 - stable/11/sys/security/audit Message-ID: <201808020931.w729VoGH079027@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808020931.w729VoGH079027>