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=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 D4A2BC3B1BF for ; Sun, 16 Feb 2020 20:04:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF2C02084E for ; Sun, 16 Feb 2020 20:04:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=perfinion-com.20150623.gappssmtp.com header.i=@perfinion-com.20150623.gappssmtp.com header.b="bRIVIygD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726037AbgBPUEL (ORCPT ); Sun, 16 Feb 2020 15:04:11 -0500 Received: from mail-pj1-f44.google.com ([209.85.216.44]:54754 "EHLO mail-pj1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbgBPUEL (ORCPT ); Sun, 16 Feb 2020 15:04:11 -0500 Received: by mail-pj1-f44.google.com with SMTP id dw13so6197620pjb.4 for ; Sun, 16 Feb 2020 12:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perfinion-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J2CpcA45m+3Q+wrOLeYhga8Su9fBYhSBUrUq5rmt4II=; b=bRIVIygD9U9mOnkgWx1RAhKPJSq6hM8DebFnEFYrwY3qIwqC9sSJSAYd9HA4tAs8jh j+IYVSYA8SyRX4OFHb4EBNZY4x4swR1pI8926AYx+b0zq6tfEJOXSvwhxFPHAfWCV6fx imHxydabMIPXvOXaC80Fk4XCriunFTR8Wv7EzqxSOfIf9YqmuT0B7uv8vjOj8ZB15wxP ctYsj40MtD1b6EfP97OwAz2p6zveKr5VZ7R2/gETROfZ6J2YqImxr32sctVEkIrTW2Fk bc3wgrZhkgDpBwCAfA3cTf8HeV8i8c+U+IkkXzuoFZoej0LeZ/0mL/iEouF+d5GgViSY zG4g== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J2CpcA45m+3Q+wrOLeYhga8Su9fBYhSBUrUq5rmt4II=; b=qfJAlavVfqAZUgEOsxO5jtpLO0WEkmRpySS4Lzw8eeGM+2TfPlj7eI3m2ZVGBXC8/Y 1EaPY3yr9l9v8xA8TuBgEYbH+WzH421Zj33RiVt9KOdJTYuFnaL9wBRv72anWgy//vD+ jN0mKRvvWODl6X0LElaCG38ccJV8rRsoS7HRMTH+iPP8Sl1XjfwDMgtfKcS3Re8SDbZp rj7uqcS64Wwji+47zrDelorFTzFiRe/nhD40yU4UiN/h8W6I1D0Gr2TKKWCnBNiQ3wyI GmFAKguYYXFb/yO35wrnPfSyY7KpRJESXO+ef4WB4nsDOFGqkjWtBgKqWJUXZotQxN3V perg== X-Gm-Message-State: APjAAAVjkIcZNTmp9LLhI3HJk4zS7kppnPruGVjLGJ8IjLMwXqRG9nWz bjMaHOkuL4PfebLeZtkm1Cu9kzUmH1Y= X-Google-Smtp-Source: APXvYqw+yp7EM4EFjKBNnEX8olJHJnrjuyjH5TOh4BnRNctlDtn5euvHGCX8RRvMClueHl2BfSBJEw== X-Received: by 2002:a17:90a:ead8:: with SMTP id ev24mr15789034pjb.91.1581883450463; Sun, 16 Feb 2020 12:04:10 -0800 (PST) Received: from localhost ([101.127.140.252]) by smtp.gmail.com with ESMTPSA id f3sm14549988pga.38.2020.02.16.12.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Feb 2020 12:04:09 -0800 (PST) From: Jason Zaman To: selinux-refpolicy@vger.kernel.org Cc: Jason Zaman Subject: [PATCH 09/10] chromium: watch etc dirs Date: Mon, 17 Feb 2020 04:03:18 +0800 Message-Id: <20200216200319.39337-9-jason@perfinion.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200216200319.39337-1-jason@perfinion.com> References: <20200216200319.39337-1-jason@perfinion.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org avc: denied { watch } for pid=44464 comm="ThreadPoolForeg" path="/etc" dev="zfs" ino=1436 scontext=staff_u:staff_r:chromium_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=dir permissive=0 Signed-off-by: Jason Zaman --- policy/modules/apps/chromium.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/apps/chromium.te b/policy/modules/apps/chromium.te index 255ef557..0e8cc1e5 100644 --- a/policy/modules/apps/chromium.te +++ b/policy/modules/apps/chromium.te @@ -156,6 +156,7 @@ files_search_home(chromium_t) files_read_usr_files(chromium_t) files_map_usr_files(chromium_t) files_read_etc_files(chromium_t) +files_watch_etc_dirs(chromium_t) # During find for /etc/whatever-release we get lots of output otherwise files_dontaudit_getattr_all_dirs(chromium_t) -- 2.24.1