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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 31E63C10F11 for ; Sat, 13 Apr 2019 05:35:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E561020869 for ; Sat, 13 Apr 2019 05:35:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="XcuK7Hj+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726175AbfDMFfm (ORCPT ); Sat, 13 Apr 2019 01:35:42 -0400 Received: from smtp.sws.net.au ([46.4.88.250]:59608 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfDMFfm (ORCPT ); Sat, 13 Apr 2019 01:35:42 -0400 Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 71C16EFC9; Sat, 13 Apr 2019 15:35:40 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1555133740; bh=pXRssPNUhh4J1IfYWlffQIHTnNa89XyRFbLboqvdIMQ=; l=712; h=From:To:Reply-To:Cc:Subject:Date:In-Reply-To:References:From; b=XcuK7Hj+RrozbnLc/umI00G0SsW6Qs8JbKZu6OQMDoQEC0QOExw4h4OrclXeRn7Pz lW9G5b3JUYFyfuDW15jnnp83usI8xvvxPaLgDG7X1XiJVSDnI5sOyyOJyTrsaHeH8G Ilf9BpQDqUx3CPqVWmRIxilyk9knj0BKxMH7Ekgc= Received: by xev.coker.com.au (Postfix, from userid 1001) id CCF98D0F41D; Sat, 13 Apr 2019 15:35:35 +1000 (AEST) From: Russell Coker To: Chris PeBenito Reply-To: russell@coker.com.au Cc: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" Subject: Re: [PATCH] Add kernel_dgram_send() into logging_send_syslog_msg() Date: Sat, 13 Apr 2019 15:35:35 +1000 Message-ID: <1987619.JXgbzmF0Gi@xev> In-Reply-To: <25dded62-a45b-5cc0-4f76-0c813b89c0b9@ieee.org> References: <20190409150948.10882-1-dsugar@tresys.com> <1597016.RvrILB9U20@liv> <25dded62-a45b-5cc0-4f76-0c813b89c0b9@ieee.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Friday, 12 April 2019 9:54:46 PM AEST Chris PeBenito wrote: > On 4/9/19 9:39 PM, Russell Coker wrote: > > Why is a socket that everything sends to labeled as kernel_t? > > > > Russell, you aren't seeing this type of access on Debian? ifdef(`init_systemd',` init_domain($1, $2) # this may be because of late labelling kernel_dgram_send($1) allow $1 init_t:unix_dgram_socket sendto; ') The above is in the upstream policy in the init_daemon_domain() interface. Not sure why. I've put in an auditallow rule and so far haven't been able to reproduce it. So we can probably remove that line. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/