cvs commit: src/etc/periodic/security 100.chksetuid
remko at FreeBSD.org
Sun Feb 24 14:25:19 UTC 2008
remko 2008-02-24 14:25:18 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
MFC rev 1.9 to 1.10 100.chksetuid
Also check setuid executables on ZFS.
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
126.96.36.199 +11 -16 src/etc/periodic/security/100.chksetuid
More information about the cvs-src