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=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 09407C43381 for ; Wed, 27 Feb 2019 03:22:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF32B218D0 for ; Wed, 27 Feb 2019 03:22:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="ckYZjqNO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729325AbfB0DWN (ORCPT ); Tue, 26 Feb 2019 22:22:13 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38787 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729128AbfB0DWN (ORCPT ); Tue, 26 Feb 2019 22:22:13 -0500 Received: by mail-pg1-f194.google.com with SMTP id m2so7221628pgl.5 for ; Tue, 26 Feb 2019 19:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=bHrAuHiSKzEtBDWmYtiDUA3otaaatIiHdN3XS6f3YEg=; b=ckYZjqNOscJIsXDOaqJSTl0U7RT2SIg/tue8oamnBtXaZVBLQKXCoFjsxyl93ul8sK Wn5yvEQ5NXxunyhVW8/HyJ4lS3fcheVuwBmCqVtlfRruFocUBfUuj8mUic0G6UqSr76Z +RY4GCijYX7rPYbSg9UtRoeZhgtmWSzZCwW0g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=bHrAuHiSKzEtBDWmYtiDUA3otaaatIiHdN3XS6f3YEg=; b=tRfW4IbsvmZwTSBqyC7ZgEdK3CH6HMeBP4fjCr1jy6P0BZsOP8NlrW5xPhQWK1cBPA b/MJnNVTnAuyOOis7V57HHRhcWKMY80Z2EYUW5etl7IDhbdZ528EWvVmP+VkqfB4Vh2m P/xWfhC3RkTvvHOvvE/kW1kvcnxboybZo+tkOUsje1eKVcI88WQ5O456AMpM+kAVFxKD uaJJXjJ0qfaWKw7pxa36JXlYzsgpFma9PuISPpfaHuNrgT2lcdSPcOQxSzQYnFXtonoX JnTebqGihaf7DAsZdX2UvEQVlgtHl9+iFoZrYT60/vY7/Cizp5nhgonOmumpQ4ALnqwy rerw== X-Gm-Message-State: AHQUAuYcwUVo6bLtF/4ImvyF9hCgYgKCHlwJUdLR9nB3j4PqiOWph//U i/1UtaCGwf0QuG5Q2iuZ2obNxsmnKVU= X-Google-Smtp-Source: AHgI3Ib3w3yN7C1vozeyGGpM/RvAPR3moQ1K5FxvTJR0WA/ywWM50Mhtjza0babx3TcYW750gfqKJg== X-Received: by 2002:a65:5c41:: with SMTP id v1mr829245pgr.404.1551237732323; Tue, 26 Feb 2019 19:22:12 -0800 (PST) Received: from lenovo.pebenito.net ([173.239.195.110]) by smtp.gmail.com with ESMTPSA id 62sm17235134pgc.61.2019.02.26.19.22.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 19:22:11 -0800 (PST) Message-ID: <49c555db0d3af313918c1bc66aff26975e42631e.camel@ieee.org> Subject: Re: [PATCH] Allow AIDE to read kernel sysctl_crypto_t From: Chris PeBenito To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" Date: Tue, 26 Feb 2019 19:22:11 -0800 In-Reply-To: <20190225233708.15319-5-dsugar@tresys.com> References: <20190225233708.15319-1-dsugar@tresys.com> <20190225233708.15319-5-dsugar@tresys.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Mon, 2019-02-25 at 23:37 +0000, Sugar, David wrote: > type=AVC msg=audit(1550799594.212:164): avc: denied { search } > for pid=7182 comm="aide" name="crypto" dev="proc" ino=10257 > scontext=system_u:system_r:aide_t:s0 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=dir permissive=1 > type=AVC msg=audit(1550799594.212:164): avc: denied { read } > for pid=7182 comm="aide" name="fips_enabled" dev="proc" ino=10258 > scontext=system_u:system_r:aide_t:s0 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file > permissive=1 > type=AVC msg=audit(1550799594.212:164): avc: denied { open } > for pid=7182 comm="aide" path="/proc/sys/crypto/fips_enabled" > dev="proc" ino=10258 scontext=system_u:system_r:aide_t:s0 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file > permissive=1 > type=AVC msg=audit(1550799594.213:165): avc: denied { getattr } > for pid=7182 comm="aide" path="/proc/sys/crypto/fips_enabled" > dev="proc" ino=10258 scontext=system_u:system_r:aide_t:s0 > tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file > permissive=1 > > Signed-off-by: Dave Sugar > --- > policy/modules/admin/aide.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/policy/modules/admin/aide.te > b/policy/modules/admin/aide.te > index 6297b60e..f58ba850 100644 > --- a/policy/modules/admin/aide.te > +++ b/policy/modules/admin/aide.te > @@ -36,6 +36,7 @@ files_read_all_files(aide_t) > files_read_all_symlinks(aide_t) > > kernel_dgram_send(aide_t) > +kernel_read_crypto_sysctls(aide_t) > > logging_send_audit_msgs(aide_t) > logging_send_syslog_msg(aide_t) Merged. -- Chris PeBenito