From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Viro Subject: Re: [PATCH] arch filter lists with < or > should not be accepted Date: Fri, 29 Sep 2006 08:46:22 -0400 Message-ID: <20060929124622.GO17710@devserv.devel.redhat.com> References: <1159479981.3228.144.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1159479981.3228.144.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Eric Paris Cc: linux-audit@redhat.com, David Woodhouse List-Id: linux-audit@redhat.com On Thu, Sep 28, 2006 at 05:46:21PM -0400, Eric Paris wrote: > Currently the kernel audit system represents arch's as numbers and will > gladly accept comparisons between archs using >, <, >=, <= when the only > thing that makes sense is = or !=. I'm told that the next revision of > auditctl will do this checking but this will provide enforcement in the > kernel even for old userspace. A simple command to show the issue would > be to run > > auditctl -d entry,always -F arch>i686 -S chmod > > with this patch the kernel will reject this with -EINVAL > > Please comment/ack/nak as soon as possible. ACK