lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <477CD0B4.5000408@dbservice.com>
Date:	Thu, 03 Jan 2008 13:10:28 +0100
From:	Tomas Carnecky <tom@...ervice.com>
To:	Cyrill Gorcunov <gorcunov@...il.com>
CC:	=?ISO-8859-1?Q?J=F6rn_Engel_ <joern@...fs.org>, ?=@...il.com,
	Ingo Molnar <mingo@...e.hu>,
	LKML <linux-kernel@...r.kernel.org>,
	David Woodhouse <dwmw2@...radead.org>
Subject: Re: [x86] kernel/audit.c cleanup according to checkpatch.pl

Cyrill Gorcunov wrote:
> [=?ISO-8859-1?Q?J=F6rn_Engel_ - Thu, Jan 03, 2008 at 12:29:57PM +0100]
> | On Thu, 3 January 2008 14:19:25 +0300, Cyrill Gorcunov wrote:
> | > @@ -232,7 +232,8 @@ void audit_log_lost(const char *message)
> | >  
> | >  	if (print) {
> | >  		printk(KERN_WARNING
> | > -		       "audit: audit_lost=%d audit_rate_limit=%d audit_backlog_limit=%d\n",
> | > +		       "audit: audit_lost=%d audit_rate_limit=%d "
> | > +		       "audit_backlog_limit=%d\n",
> | >  		       atomic_read(&audit_lost),
> | >  		       audit_rate_limit,
> | >  		       audit_backlog_limit);
> | 
> | This hunk is a bit questionable.  It can easily deceive a reader to
> | assume two seperate lines printed out and sometimes defeats grepping
> | for printk output to find the code generating the message.
> | 
> | Rest looks good to me.
> | 
> | Jörn
> | 
> | -- 
> | He that composes himself is wiser than he that composes a book.
> | -- B. Franklin
> | 
> 
> indeed.
> 
> here is updated one (with these part removed)

Instead of removing that part completely, why not print this:
"audit: lost=%d rate_limit=%d backlog_limit=%d\n"

In that line there were too many 'audit's IMHO, and if someone wants to 
grep 'audit_lost=' he still can, 'audit:.*lost=' or something like that..

tom
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ