From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47087C433DF for ; Thu, 18 Jun 2020 23:55:16 +0000 (UTC) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E95A7207D8 for ; Thu, 18 Jun 2020 23:55:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dCAYHAYs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E95A7207D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=magitekltd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-audit-bounces@redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1592524514; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=p7eKW8FKyi/rGJaiuQ+vCh3X9WN/PO/WeoEV8dLRgHU=; b=dCAYHAYsT2I6a2OxDQfV0TgUS1Acgal2bZwCaZecv7pE5VW9aNP3KWGg2tLxoIJ4DKSKEQ HkHUKN1g1jcIMFCSO0a40SU2ns5a2db5D57fKS4JuxhdwvLpjaHDCtak09GT/FMYGTVpjv L1fTtva8+jqHn7dRHEEHL53WItdv2bk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-395-2ZFnDDPBN-WgHFxrPuajRw-1; Thu, 18 Jun 2020 19:55:12 -0400 X-MC-Unique: 2ZFnDDPBN-WgHFxrPuajRw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3C947835B40; Thu, 18 Jun 2020 23:55:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D2CCC5BACC; Thu, 18 Jun 2020 23:55:08 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 651D71809547; Thu, 18 Jun 2020 23:55:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 05INt6sc022439 for ; Thu, 18 Jun 2020 19:55:07 -0400 Received: by smtp.corp.redhat.com (Postfix) id C95662156A3A; Thu, 18 Jun 2020 23:55:06 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C4C572156A2D for ; Thu, 18 Jun 2020 23:55:04 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5998C85A5A3 for ; Thu, 18 Jun 2020 23:55:04 +0000 (UTC) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-381-iTSf_YvMO3OhIjtQx6r8Tg-1; Thu, 18 Jun 2020 19:55:02 -0400 X-MC-Unique: iTSf_YvMO3OhIjtQx6r8Tg-1 Received: by mail-pf1-f172.google.com with SMTP id h185so3592745pfg.2 for ; Thu, 18 Jun 2020 16:55:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=PaL+jevcJp2RDsTR1+rLsDbpxcPfJ3UOiX+j5VbZoqg=; b=a69Kb/nwf5ulRts54xoHzDPpPUB88mhI9IxAX8FrdCc4hXci2KwIyr8DwLysS1wu8Q HBmjOdvZbVcLEOi4QmHMpq3i3IMKO0BJGVavjc0Y3FTrhK3Flw8gkjrELb2WBSc2Gz/q elI3KrzUCVKFupOSbexuAisvnWX2anRfnTJriZGpE775CfrSIF8/s1X2O384WlDjRSKP mImmDMkSdkNuwvEpPUSiZ/r3ng0+JYIZbuvMV20Fu03P5PHDuFq6iI7125nI97AOPk6h 61jpf2K75CO5R3bozc9Fe+j73MQnIbcStnGmzNBv1UMr2GcF1qg0PEF6zmLiLL45DEem xR4Q== X-Gm-Message-State: AOAM532Bj7ishUpITSllc9V/t1E/X8pLHRQYWCmef2u8XK1e+5FGJm3b Ec03o49G4aqZi+sR3gk57oKqpTOEjzU= X-Google-Smtp-Source: ABdhPJxFgVBAw0WpMInnMQYpvZuhZkHfQr/v6CgWGR8/kjRDZok7bnm4SBeRXLKi7+ZWkbNbG1xlZg== X-Received: by 2002:a63:725c:: with SMTP id c28mr812129pgn.156.1592524500765; Thu, 18 Jun 2020 16:55:00 -0700 (PDT) Received: from [192.168.0.143] ([216.158.248.173]) by smtp.gmail.com with ESMTPSA id g19sm3827784pfo.209.2020.06.18.16.55.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 16:55:00 -0700 (PDT) Subject: Re: Error handling of auditctl -w To: linux-audit@redhat.com References: <1MXp9Y-1jOF6E24IW-00Y8HI@mail.gmx.com> From: Lenny Bruzenak Message-ID: Date: Thu, 18 Jun 2020 17:54:56 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1MXp9Y-1jOF6E24IW-00Y8HI@mail.gmx.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: linux-audit@redhat.com X-BeenThere: linux-audit@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Linux Audit Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit On 6/16/20 2:00 PM, Stefan Tauner wrote: > Hi, > > I was wondering why my auditctl executions do not print any errors but > apparently didn't do anything. After checking the return value (which > was 255) I looked at the code and noticed that audit_setup_perms() and > audit_update_watch_perms() have virtually no user-visible error reporting. Are these in a rules file? I was thinking about perhaps a previous "-i" (i.e. auditctl -i) preceeded your rule, however the man page says it always returns a success code. So probably not that, unless the man page doesn't match reality. Can you provide a little more detail (e.g. parameters)? Thx, LCB -- Lenny Bruzenak MagitekLTD -- Linux-audit mailing list Linux-audit@redhat.com https://www.redhat.com/mailman/listinfo/linux-audit