[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200809111508.13658.sgrubb@redhat.com>
Date: Thu, 11 Sep 2008 15:08:13 -0400
From: Steve Grubb <sgrubb@...hat.com>
To: linux-audit@...hat.com
Cc: Miloslav Trmač <mitr@...hat.com>,
John Dennis <jdennis@...hat.com>, viro@...iv.linux.org.uk,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] audit: fix NUL handling in untrusted strings
On Thursday 11 September 2008 14:10:12 Miloslav Trmač wrote:
> > As a side note I'm concerned there may be places in the user audit
> > code which treat string data as null terminated (at least that is my
> > recollection).
>
> Yes, auditd adds a NUL terminator to the audit record, and then treats
> it as a regular NUL-terminated string; if the audit record contains an
> embedded NUL byte, the rest of the record is discarded by auditd.
In every case where this occurs (kernel or user space), the field values are
expected to be encoded to prevent it from being discarded.
-Steve
--
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