From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Quinney Subject: auditctl exit code Date: Fri, 11 May 2012 13:20:06 +0100 Message-ID: <20120511122006.GA16481@kildalton> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.18]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4BCKBue006030 for ; Fri, 11 May 2012 08:20:11 -0400 Received: from nougat.ucs.ed.ac.uk (nougat.ucs.ed.ac.uk [129.215.13.205]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4BCK8S2022454 for ; Fri, 11 May 2012 08:20:09 -0400 Received: from beeknow.inf.ed.ac.uk (beeknow.inf.ed.ac.uk [129.215.33.12]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id q4BCK7be024049 for ; Fri, 11 May 2012 13:20:07 +0100 (BST) Received: from localhost (cpc8-sgyl31-2-0-cust412.sgyl.cable.virginmedia.com [77.100.221.157]) (authenticated bits=0) by beeknow.inf.ed.ac.uk (8.14.4/8.14.4) with ESMTP id q4BCK6bA021127 for ; Fri, 11 May 2012 13:20:07 +0100 Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com I am using Linux Audit version 2.1.3 and I'm wondering if the following behaviour of auditctl is intentional. When I do a complete list of the current rules (with auditctl -l) I get an exit code of zero, as expected. When I do a list which is restricted to a particular key (auditctl -l -k foo) I get 255. It doesn't matter which of my keys I use and there are no error messages sent to stderr to indicate a problem. The auditctl manpage doesn't say what various exit values mean so I'm not sure what type of error is occurring. Stephen Quinney -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.