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 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 456F8C43387 for ; Thu, 10 Jan 2019 05:18:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 07993214DA for ; Thu, 10 Jan 2019 05:18:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=coker.com.au header.i=@coker.com.au header.b="enQ6QX3R" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725783AbfAJFSA (ORCPT ); Thu, 10 Jan 2019 00:18:00 -0500 Received: from smtp.sws.net.au ([46.4.88.250]:50158 "EHLO smtp.sws.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725536AbfAJFSA (ORCPT ); Thu, 10 Jan 2019 00:18:00 -0500 Received: from xev.coker.com.au (localhost [127.0.0.1]) by smtp.sws.net.au (Postfix) with ESMTP id D5F55EC78; Thu, 10 Jan 2019 16:17:58 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coker.com.au; s=2008; t=1547097479; bh=vaHgOkkj12zay2KdUoev3q5l/3CPbYAvHpgicPG/W3U=; l=849; h=From:To:Reply-To:Cc:Subject:Date:In-Reply-To:References:From; b=enQ6QX3R9GlgprYIQVXSJD6T7IwLJhBCxT3PgVGnVWJjLKTaqObZwwv4QS1iATRXt QqNQUE4cpWSTutv/RsldFq+eOllb6aN7JO15sKDPJiLb8RHUXqCRizlSW6W0BvYzfj w1HHS/6YvtLOVXJ0ImsHeEMW0NN4EPm0nh3lbAvg= Received: by xev.coker.com.au (Postfix, from userid 1001) id 2F07AC4555F; Thu, 10 Jan 2019 16:17:54 +1100 (AEDT) From: Russell Coker To: Chris PeBenito Reply-To: russell@coker.com.au Cc: selinux-refpolicy@vger.kernel.org Subject: Re: [PATCH] chrome/chromium Date: Thu, 10 Jan 2019 16:17:54 +1100 Message-ID: <11639347.phjdDo44MW@xev> In-Reply-To: References: <20190108084939.GA28652@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 Thursday, 10 January 2019 11:06:23 AM AEDT Chris PeBenito wrote: > > allow $2 mozilla_t:fd use; > > allow $2 mozilla_t:shm rw_shm_perms; > > + allow chrome_sandbox_t $2:fd use; > > + allow chrome_sandbox_t $2:fifo_file write; > > + allow chrome_sandbox_t $3:chr_file { read write }; > > Beyond that, this simply won't fly because all the seemingly conflicting > types. A user might think, "what does mozilla have to do with chrome? I > don't even have mozilla installed!" For this to work, we'd have to go > down a generic browser policy, with correspondingly generic type names. > I'm not opposed to this, but that'd be the first step. Fair point. Would you like me to submit a patch s/mozilla/webbrowser/g as the first step towards this? -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/