From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36E34139695 for ; Sun, 30 Apr 2017 14:20:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B59221C0B2; Sun, 30 Apr 2017 14:20:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2485121C0AB for ; Sun, 30 Apr 2017 14:20:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 39B11341130 for ; Sun, 30 Apr 2017 14:20:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 989E17443 for ; Sun, 30 Apr 2017 14:19:59 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1493561863.eae74f80d6ed5f475ecf7fe3c476d8047aca6f39.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/networkmanager.if policy/modules/contrib/wm.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: eae74f80d6ed5f475ecf7fe3c476d8047aca6f39 X-VCS-Branch: master Date: Sun, 30 Apr 2017 14:19:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 327353fc-e704-4d83-942f-aec89d739b2b X-Archives-Hash: a830b3a3ceaa49e969b1ddf0889c204c commit: eae74f80d6ed5f475ecf7fe3c476d8047aca6f39 Author: Guido Trentalancia trentalancia net> AuthorDate: Thu Apr 13 23:26:10 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Apr 30 14:17:43 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=eae74f80 wm: load the NetworkManager applet Gnome-shell needs to read NetworkManager configuration files in /etc in order to correctly run the applet. Signed-off-by: Guido Trentalancia trentalancia.net> policy/modules/contrib/networkmanager.if | 20 ++++++++++++++++++++ policy/modules/contrib/wm.te | 2 ++ 2 files changed, 22 insertions(+) diff --git a/policy/modules/contrib/networkmanager.if b/policy/modules/contrib/networkmanager.if index 10688d21..3c5073d1 100644 --- a/policy/modules/contrib/networkmanager.if +++ b/policy/modules/contrib/networkmanager.if @@ -172,6 +172,26 @@ interface(`networkmanager_signal',` ') ######################################## +### +### Read networkmanager etc files. +### +### +### +### Domain allowed access. +### +### +## +interface(`networkmanager_read_etc_files',` + gen_require(` + type NetworkManager_etc_t; + ') + + files_search_etc($1) + list_dirs_pattern($1, NetworkManager_etc_t, NetworkManager_etc_t) + read_files_pattern($1, NetworkManager_etc_t, NetworkManager_etc_t) +') + +######################################## ## ## Create, read, and write ## networkmanager library files. diff --git a/policy/modules/contrib/wm.te b/policy/modules/contrib/wm.te index e5f65316..77dcc432 100644 --- a/policy/modules/contrib/wm.te +++ b/policy/modules/contrib/wm.te @@ -68,6 +68,8 @@ miscfiles_read_fonts(wm_domain) miscfiles_read_generic_certs(wm_domain) miscfiles_read_localization(wm_domain) +networkmanager_read_etc_files(wm_domain) + udev_read_pid_files(wm_domain) # this is needed by gnome-shell