From owner-cvs-all@FreeBSD.ORG Sun Feb 24 14:25:19 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B21B16A400; Sun, 24 Feb 2008 14:25:19 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6E09713C467; Sun, 24 Feb 2008 14:25:19 +0000 (UTC) (envelope-from remko@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1OEPJs7046846; Sun, 24 Feb 2008 14:25:19 GMT (envelope-from remko@repoman.freebsd.org) Received: (from remko@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1OEPJAo046845; Sun, 24 Feb 2008 14:25:19 GMT (envelope-from remko) Message-Id: <200802241425.m1OEPJAo046845@repoman.freebsd.org> From: Remko Lodder Date: Sun, 24 Feb 2008 14:25:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/etc/periodic/security 100.chksetuid X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2008 14:25:19 -0000 remko 2008-02-24 14:25:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) etc/periodic/security 100.chksetuid Log: MFC rev 1.9 to 1.10 100.chksetuid rev 1.9 Also check setuid executables on ZFS. rev 1.10 Rewrite to consume significantly less memory, by using find -s instead of find | sort. As a bonus, this simplifies the logic considerably. Also remove the bogus "overruning the args to ls" comment and the corresponding "-n 20" argument to xargs; the whole point with xargs is precisely that it knows how large the argument list can safely get. Note that the first run of the updated script may hypotheticall produce false positives due to differences between find's and sort's sorting algorithm. I haven't seen this during testing, but others might. MFC after: 2 weeks Approved by: imp (mentor, implicit for trivial changes), des (doing some MFC's for him) Revision Changes Path 1.8.2.1 +11 -16 src/etc/periodic/security/100.chksetuid