From: Klaus Weidner Subject: Re: [PATCH] audit: fix broken class-based syscall audit Date: Thu, 17 May 2007 10:23:33 -0500 Message-ID: <20070517152333.GE11536@w-m-p.com> References: <20070516224542.GD11536@w-m-p.com> <16777.1179407950@turing-police.cc.vt.edu> <200705170958.25421.sgrubb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mx2.redhat.com (mx2.redhat.com [10.255.15.25]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4HFYKm6027076 for ; Thu, 17 May 2007 11:34:20 -0400 Received: from mail.atsec.com (mail.atsec.com [195.30.252.105]) by mx2.redhat.com (8.13.1/8.13.1) with ESMTP id l4HFYGKc011680 for ; Thu, 17 May 2007 11:34:17 -0400 Content-Disposition: inline In-Reply-To: <200705170958.25421.sgrubb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb Cc: Linus Torvalds , linux-audit@redhat.com, Valdis.Kletnieks@vt.edu, Al Viro List-Id: linux-audit@redhat.com On Thu, May 17, 2007 at 09:58:25AM -0400, Steve Grubb wrote: > On Thursday 17 May 2007 09:19, Valdis.Kletnieks@vt.edu wrote: > > > I'd suggest adding a printk() in addition to returning 0 - you don't want > > > to silently ignore unknown or unsupported syscalls when auditing. > > > > Make it rate-limited, so a program can't unintentionally spam your logs. > > For this to happen, the syscall would have to be > 2048. I'd almost image > syscalls out of range in general...whether being auditing by class as in this > case or with a typical syscall rule is a problem. So, way back over at > syscall entry would be the time to notice this problem instead of here. If we > are concerned about this, it might be a general control feature like > enable/disable, fail mode, or backlog. We could make something to report out > of range syscalls. Can we agree to do just the simple fix for this issue for now, and maybe revisit adding additional sanity checks later if people think they are helpful? -Klaus