Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp859337pxb; Thu, 17 Feb 2022 16:50:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhhiZd7+8XTxVJYjGSToIZOmVQFZiW9m0Xo2Zuu0FZFGfqiJMiu58TPHLr6CRngcIVZW1X X-Received: by 2002:a17:902:cec5:b0:14e:e827:a6f3 with SMTP id d5-20020a170902cec500b0014ee827a6f3mr5187105plg.94.1645145459425; Thu, 17 Feb 2022 16:50:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645145459; cv=none; d=google.com; s=arc-20160816; b=eSprh2k7RQXeRfU3Z2uT6SEsGKXnvO0CJWjl3gLVnnHrjn6KWD6jdLnjQSlZI9ncy4 myslRukYN1buMmOL0D500osh/uGOoM7CrkbJA4mg5Vg0kTzlAgaIv6xo0oFHRFTvsrvd N1wIo3mJZvqwGreCn35WlPhETUsypHZnY3KIAM9PmGwlaYts6AqQPXojMfNzILXRiWs7 qszt0kIS+VEdttnrPGY60jZzPR1DTu72oQJUMpTbNsPTaE+a6X5SN7u6W+Z2SLHbDIGP 6lytF1w3IjxYqJ174JPtFpoz5MRG9fqIUEBsRGhZnZv85mhWS9P68cBNovO+JIE7UlqP 3cpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:reply-to:to:from :dkim-signature; bh=2pmmVLaa60Vj+clZ1aIoEnVFOEa9rNPjfM9sQGI1Jb4=; b=XqOjw9NkhOXBzmKmftrA6haaP8WRnOeQuJZMpfGfz4UbA6kwwKYDimND/qj4UtER30 OBWriBt5fXRVjYZgKunRUTFudxnTsxW7M81CIKtv7VkjfLVXpepUnajJdeMogDECdpYV B3gVUYQeRwKdvKeA8SejRiVja9571vxGN/6AVOS+0AlC4wCh22b1qQzKYKIl2oqd3zV7 oCuHT/y1Tmj3JNonPHN6tkOVMQ+W1Cv3CKyx3UBhX9E950zyhHY+mnRVtt7CnPQoZLE5 smWqwo1+jSV1KwsR4cBftV8rPGNDPUsnFZPX5OAoCtKXb8G/y11RgxY35XqiF/hlk4gT s9CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=beR69SoE; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p17si2115654pjo.36.2022.02.17.16.50.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:50:59 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=beR69SoE; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=coker.com.au Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DAA4C36320; Thu, 17 Feb 2022 16:26:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbiBRA0Y (ORCPT + 22 others); Thu, 17 Feb 2022 19:26:24 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:56114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiBRA0X (ORCPT ); Thu, 17 Feb 2022 19:26:23 -0500 Received: from smtp.sws.net.au (smtp.sws.net.au [144.76.241.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 816F5B64 for ; Thu, 17 Feb 2022 16:26:04 -0800 (PST) Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 9EA3C10F00; Fri, 18 Feb 2022 11:26:00 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1645143961; bh=2pmmVLaa60Vj+clZ1aIoEnVFOEa9rNPjfM9sQGI1Jb4=; l=2741; h=From:To:Reply-To:Cc:Subject:Date:In-Reply-To:References:From; b=beR69SoEa75Eyq+MsMtfGtQDbBs5I4g+BUI+M+bLB7KADlt09VhQY1Im3qaeGvylA KjI82uYm+SVxGpoG0fzkZEnnM5HOanIDZBCdEepI0gKAKqlN8UouOXtR7wBMolbjpt 27W0rXYmE0xniGjMlNwctDsamEklelFVCoxbz57w= Received: by xev.coker.com.au (Postfix, from userid 1001) id D919D1735D12; Fri, 18 Feb 2022 11:25:55 +1100 (AEDT) From: Russell Coker To: Chris PeBenito Reply-To: russell@coker.com.au Cc: selinux-refpolicy@vger.kernel.org Subject: Re: [PATCH] rasdaemon (replacement for mcelog) Date: Fri, 18 Feb 2022 11:25:55 +1100 Message-ID: <18698496.iPHH8zDuP6@xev> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Saturday, 13 March 2021 02:03:48 AEDT Chris PeBenito wrote: > On 3/8/21 3:59 AM, Dominick Grift wrote: > > Dominick Grift writes: > >> Russell Coker writes: > >>> This is policy for rasdaemon, the new replacement for mcelog. The > >>> /dev/mcelog device is now an obsolete kernel feature that can be enabled > >>> for backward compatibility and rasdaeon with tracefs is the new way. > >>> > >>> I've tested this and it seems to work OK, but all my servers are working > >>> well so I haven't been able to test the case of actually detecting an > >>> error. It would be good if someone with a known damaged server could > >>> give > >>> it a go. > >>> > >>> I think this is ready for merging. > >>> > >>> Signed-off-by: Russell Coker > > [...] > > >>> +++ refpolicy-2.20210203/policy/modules/services/rasdaemon.te > >>> @@ -0,0 +1,49 @@ > >>> +policy_module(rasdaemon, 1.0.0) > >>> + > >>> +# rasdaemon is a RAS (Reliability, Availability and Serviceability) > >>> logging +# tool. It currently records memory errors, using the EDAC > >>> tracing events. +# EDAC are drivers in the Linux kernel that handle > >>> detection of ECC errors +# from memory controllers for most chipsets on > >>> x86 and ARM architectures. +# > >>> +# https://git.infradead.org/users/mchehab/rasdaemon.git > >> > >> Please use the for description. We have an api > >> browser (make doc) and the description should end up there as well. > >> > >> Reliability, Availability and Serviceability (RAS) logging > >> tool. > >> > >> I would omit the url because those are often subject to change anyway. > > I agree if we have this amount of description it should go in the XML, but > the module level actually has a tag that goes after . I > like Dominick's summary, but the Russel's comment can go in the module > . > > The URL can remain. Yes, it can change, but at least there are some > breadcrumbs if this program becomes obsolete or unmaintained. So you mean having the following in rasdaemon.if ? ## RAS (Reliability, Availability and Serviceability) logging tool ## ## ## rasdaemon is a RAS (Reliability, Availability and Serviceability) logging ## tool. It currently records memory errors, using the EDAC tracing events. ## EDAC are drivers in the Linux kernel that handle detection of ECC errors ## from memory controllers for most chipsets on x86 and ARM architectures. ## ## https://git.infradead.org/users/mchehab/rasdaemon.git ## -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/