Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp414701ybb; Fri, 10 Apr 2020 02:41:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKWkrjZ5uPGFmqr5Sgf+4hVH0eyoAaf8yYmec4iw/2N49O0NZzu2pKr/wjTGIEFoBqkSZrl X-Received: by 2002:a05:620a:7eb:: with SMTP id k11mr3111595qkk.282.1586511662981; Fri, 10 Apr 2020 02:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586511662; cv=none; d=google.com; s=arc-20160816; b=ObBqSGEyFpYrkWN0B4y8UeuCAA2MOis1fUc2WUVdMJXHNzcxC1+FPN6u8vhc8YiUlt Uk3VvQsIBnOob0B2M9pEFuqVjCivqF/aFihOmPFCTA86SnlePxhIrKpskxhw8hpbnN4l 8UoHpur2mnp3Mrr42ZKwQH5o03gNYUj1rfWupSEbDfrcfzLT6+5E/a307iKeSqNIxCcG zAu8JgHXRCoLgEyxiW162Sgtwj3DLkJ6dHqBAU3Di1odDiWgN/wRnGgdcv3Vjk7p7Z74 5722Ho56HT0owZkjQUMcnN6jJOeAPdZ3i+YAA9C8S7XWOoSOBGU4vgLervai4cyf/fvA Vfxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+lpCXF8thxO0cETWnMuFMgUBZkPz6fe8zSpBL136xfQ=; b=TfgCAhPtE/0WUFWUc9zcSDjdtuotqKKqUsDThbIo2SpnypH9XcSI9SSJ696Rq3qvr+ o6EfplXfAC7jbmHA6A8rLWHN39UU2lufMAlcT4aoBX88vih6OaGTXNoq0AJ4GbqXGG5L ltAA96xZaPcJMWtSNgt+jmDRfyF5PfBoGKKQIvzxVYbkt/dNLMJb3lbMnFq2uA1SujP5 FPJkAHW5bTHhS4iz3lD46BQ54x+JJI8LK2FXZfxvoGRmrrPI7jnyL2tZKYdckbptsYjW 7DusSnprZv8Qf6x98MmFn6r/iSayh8MacHBfddgLfhDjVaO56+iVVuNgsuCFo86xYEyT 6OMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=gfxyQSBg; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si851356qti.50.2020.04.10.02.40.59; Fri, 10 Apr 2020 02:41:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@coker.com.au header.s=2008 header.b=gfxyQSBg; spf=pass (google.com: best guess record for domain of selinux-refpolicy-owner@vger.kernel.org designates 209.132.180.67 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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbgDJJkU (ORCPT + 13 others); Fri, 10 Apr 2020 05:40:20 -0400 Received: from smtp.sws.net.au ([46.4.88.250]:40152 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725861AbgDJJkU (ORCPT ); Fri, 10 Apr 2020 05:40:20 -0400 Received: from liv.localnet (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id 49F47EBA1; Fri, 10 Apr 2020 19:40:17 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1586511619; bh=+lpCXF8thxO0cETWnMuFMgUBZkPz6fe8zSpBL136xfQ=; l=870; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gfxyQSBgjK8CXM4Br4oNHmFWY+yEMxm4o3I3Vi1sKGf6cJI7TsYzcG6hGjTEoJCCH s+GRJI8bwEIp+pRYbY753LNIc5wN0yrY79rs3zqmWiGDHiOpsx/vOdDHNyk2Qq4qdS Nyfy1+AJDLu5Ay4KMWJvPGDIZ4RF4vxUI/1TOj/E= From: Russell Coker To: Dominick Grift Cc: selinux-refpolicy@vger.kernel.org Subject: Re: another memlockd patch Date: Fri, 10 Apr 2020 19:40:13 +1000 Message-ID: <1765247.TeHuJhGoBa@liv> In-Reply-To: References: <20200410060317.GB35896@xev> 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, 10 April 2020 6:10:57 PM AEST Dominick Grift wrote: > > +allow memlockd_t self:unix_dgram_socket { create connect }; > > the unix dgram socket creating is probably redundant and implied with > logging_send_logs_msg() as journald uses dgram_sendto for logging? You are correct, that is redundant. Chris shall I submit the patch again or would it be easier to just delete that line when you merge? > > +# cache /etc/shadow too > > +auth_read_shadow(memlockd_t) > > Hmm since /etc/shadow is mode 000, how is memlock able to read this > without cap_dac_read_search access. is that implied? /etc/shadow is mode 640 on Debian. On other distributions the choice is either more permissions for memlockd or a configuration that doesn't cache /etc/shadow. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/