[PATCH v6 6/8] selftests/brute: Add tests for the Brute LSM

John Wood john.wood at gmx.com
Sat Mar 20 15:49:36 UTC 2021


On Wed, Mar 17, 2021 at 09:08:17PM -0700, Kees Cook wrote:
> On Sun, Mar 07, 2021 at 12:30:29PM +0100, John Wood wrote:
> > +
> > +count_fork_matches()
> > +{
> > +	dmesg | grep "brute: Fork brute force attack detected" | wc -l
>
> This may be unstable if the dmesg scrolls past, etc. See how
> lkdtm/run.sh handles this with a temp file and "comm".

Thanks, I will correct this for the next version.

John Wood



More information about the Linux-security-module-archive mailing list