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=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 E356AC43381 for ; Tue, 26 Feb 2019 06:52:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ADE1F213A2 for ; Tue, 26 Feb 2019 06:52:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VJ5/Y1Sx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726223AbfBZGwu (ORCPT ); Tue, 26 Feb 2019 01:52:50 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41320 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfBZGwu (ORCPT ); Tue, 26 Feb 2019 01:52:50 -0500 Received: by mail-ed1-f67.google.com with SMTP id x7so9748664eds.8 for ; Mon, 25 Feb 2019 22:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=O7L2pS2zIC1ktqMDNATjXrgTZ7ECK/P74EO24IGFQsI=; b=VJ5/Y1SxTYGvEEIsRrU6zhf+H4zG+zHQ+dvKTBXbdEvOmNV/K34C3aD6k7LhV3siZv bLhaMUX+3P1QAdjKt4C9S4Q9aWvsP97LlePuX92cqPhtl+V0c4gs0rsQjTXGHPexyM+4 xGuBbQtYte7+q302hugZ6whXxahv0Zrtl6/zTfKswkiCM+Vq8YXcuU0+XUXs5pGoPOOi w5Osqx2jFx+opJ1oOC0Dun0wqy60DMul4ATTf2P7mCLsAK7RdFgtWANoLlaOkzTEp2g8 5g9F/cHsvIUudLLma8Lfrw9zC3wfKNHLXgPvYVJfhk4iQ5bwI5yVKBYnXG7PCF3Rjovk SDZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=O7L2pS2zIC1ktqMDNATjXrgTZ7ECK/P74EO24IGFQsI=; b=OaEB2DlMnkuGosYbsGzjHxYI7jDdt6UM3IzqpZRaiUZ2gt9r2FzlxapR9AqVmIDUmt 7MqnhluWa2VKSwKHzBzCW6isTqF/XDe+429fZE5LxyU4V1pECoxj0OrUCK0lW+XutajL F+kKRz88IeIctPmVlY2N6IBWnLTbKr64zyrNk5n7m0RPFuY959E4XJCwsBIucus8tN6P cUw7uaHhdamMiaqy/1HTQjRUkGlw6Sn1/VI/hHdu0FGV7YJ9m2Byg5D7bHAJOZGNU+lD J+IKpSYBniWxzJxWHYa1t4Hr2hLoc0+xNExgW1lWnO4Plo10xSJWIdSFTPAVPOVUPUP6 RYjQ== X-Gm-Message-State: AHQUAuYpsiJjIFcxjGCuS078qUGXXNfyaiyU67HKPwKULUp7O2bnU9ZW JEDUkDA+gfzMuGhhZnYSSzEsemh+ X-Google-Smtp-Source: AHgI3IZgRSLORu3ANM0kZDaeYQirdXDlIru0dAXP2lziWZLuxAXEMRFMaSYKZb5PEOOZUlLvVsBqmg== X-Received: by 2002:a50:9fe9:: with SMTP id c96mr18093755edf.0.1551163968147; Mon, 25 Feb 2019 22:52:48 -0800 (PST) Received: from brutus (brutus.defensec.nl. [2001:985:d55d::438]) by smtp.gmail.com with ESMTPSA id g18sm3210854edh.39.2019.02.25.22.52.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Feb 2019 22:52:47 -0800 (PST) From: Dominick Grift To: "Sugar\, David" Cc: "selinux-refpolicy\@vger.kernel.org" Subject: Re: [PATCH] Allow AIDE to sendto kernel datagram socket References: <20190225233708.15319-1-dsugar@tresys.com> <20190225233708.15319-4-dsugar@tresys.com> Date: Tue, 26 Feb 2019 07:52:47 +0100 In-Reply-To: <20190225233708.15319-4-dsugar@tresys.com> (David Sugar's message of "Mon, 25 Feb 2019 23:37:46 +0000") Message-ID: <87pnrf9h34.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org "Sugar, David" writes: > type=AVC msg=audit(1550799594.394:205): avc: denied { sendto } for > pid=7182 comm="aide" path="/dev/log" > scontext=system_u:system_r:aide_t:s0 > tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket > permissive=1 Is this not part of logging_send_syslog_msg()? It should be AFAIK. > > Signed-off-by: Dave Sugar > --- > policy/modules/admin/aide.te | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/policy/modules/admin/aide.te b/policy/modules/admin/aide.te > index 9d3c19ce..6297b60e 100644 > --- a/policy/modules/admin/aide.te > +++ b/policy/modules/admin/aide.te > @@ -35,6 +35,8 @@ logging_log_filetrans(aide_t, aide_log_t, file) > files_read_all_files(aide_t) > files_read_all_symlinks(aide_t) > > +kernel_dgram_send(aide_t) > + > logging_send_audit_msgs(aide_t) > logging_send_syslog_msg(aide_t) -- Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift