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=-5.3 required=3.0 tests=BAYES_00, 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 0B59EC433DB for ; Thu, 18 Mar 2021 00:02:50 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6323264F26 for ; Thu, 18 Mar 2021 00:02:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6323264F26 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=magitekltd.com Authentication-Results: mail.kernel.org; spf=tempfail smtp.mailfrom=linux-audit-bounces@redhat.com 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-284-RNJ4-iDmNxe8vu7kcR6Uvg-1; Wed, 17 Mar 2021 20:02:46 -0400 X-MC-Unique: RNJ4-iDmNxe8vu7kcR6Uvg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 864C781746B; Thu, 18 Mar 2021 00:02:42 +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 28B175C1D0; Thu, 18 Mar 2021 00:02:42 +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 780F71809C83; Thu, 18 Mar 2021 00:02:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12I02ctb012331 for ; Wed, 17 Mar 2021 20:02:39 -0400 Received: by smtp.corp.redhat.com (Postfix) id C96DAF5AFB; Thu, 18 Mar 2021 00:02:38 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3F18F5ADA for ; Thu, 18 Mar 2021 00:02:36 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 5F6F3100E641 for ; Thu, 18 Mar 2021 00:02:36 +0000 (UTC) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-400-iiwRKTXhOoyU-FyoPOj-hA-1; Wed, 17 Mar 2021 20:02:34 -0400 X-MC-Unique: iiwRKTXhOoyU-FyoPOj-hA-1 Received: by mail-oi1-f174.google.com with SMTP id n8so167302oie.10 for ; Wed, 17 Mar 2021 17:02:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=122+JID7X32/BCnB9OERK+GFWphKnxVFaqhaBNVl1Q8=; b=ly765nHPgQapb7hZ+AOWSzE1HOKZkgIXCfp/d6SeFbHr2aOPPkPTildOcV93/5qYt0 e59U2cnDqMCKCo+DCyXtP8zvM6oEkk2PN4Z8a7tbAdgxvsjP20gyuj1ZNXLYcHTznjB1 he0x+2/iSkgoTFzAC9AIXv7oDMxV54pq8sMmSfYHrihywFGH9TG4eeMdyiApHiM6g34m y9GGgp3lM4f2MEa+t4oKMunN3+qdGIE7c4Mu5nyXUjlweKI4ti4Z/oQOGswUn+c+I3hw bvJLYcm5gzZ6u5tkUQtudWsAgPIuUJy3iz+Gj1ahKkt4RwqACCv50qhr36cxg2OyTuSb Vvvg== X-Gm-Message-State: AOAM5335CdI1dchOTj4lGCrrW3u5RPaM/yS1CCARBw3L1Dqg/42Cm/gm TQy9diC80DRQ3ZcRD1BRUl/jB4PkbcexZP+y X-Google-Smtp-Source: ABdhPJxg1ttG79JOOjZs7udv3m37E3wEw1uFfkva7MZZ9m0k1jjchztz98/OZi7mkbtab40C4NHyAQ== X-Received: by 2002:a05:6808:f12:: with SMTP id m18mr998838oiw.62.1616025753156; Wed, 17 Mar 2021 17:02:33 -0700 (PDT) Received: from [192.168.10.103] (072-178-215-006.res.spectrum.com. [72.178.215.6]) by smtp.gmail.com with ESMTPSA id z14sm147827oid.12.2021.03.17.17.02.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Mar 2021 17:02:32 -0700 (PDT) To: Linux-audit@redhat.com From: Lenny Bruzenak Subject: checkpoint question Message-ID: <37100363-f625-7b87-4b23-4074f697d465@magitekltd.com> Date: Wed, 17 Mar 2021 19:02:31 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=linux-audit-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I'm trying to use the ausearch checkpoint feature in conjunction with the "--just-one" option in order to parse some events one at a time. However, using this I only get the first event (audit 2.8.5). IOW I'm doing: # let CNT=10 # while [ $CNT -gt 0 ] ; do > auditctl -m "Event $CNT" > let CNT=$CNT-1 > done # ausearch -i -ts recent --checkpoint /tmp/check --just-one -m user < Returns event 10 > but # ausearch -i --checkpoint /tmp/check --just-one -m user Thx, LCB -- Lenny Bruzenak MagitekLTD -- Linux-audit mailing list Linux-audit@redhat.com https://listman.redhat.com/mailman/listinfo/linux-audit