From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-641019-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 512ED138247 for <garchives@archives.gentoo.org>; Mon, 11 Nov 2013 13:45:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB738E0BA3; Mon, 11 Nov 2013 13:45:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1877E0BA3 for <gentoo-commits@lists.gentoo.org>; Mon, 11 Nov 2013 13:45:55 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DCB8433EFCC for <gentoo-commits@lists.gentoo.org>; Mon, 11 Nov 2013 13:45:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 6F02AE54C9 for <gentoo-commits@lists.gentoo.org>; Mon, 11 Nov 2013 13:45:52 +0000 (UTC) From: "Sven Vermeulen" <swift@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Vermeulen" <swift@gentoo.org> Message-ID: <1384177419.b7f2cb1528eb9c41bfc7c7f17a6a75fbbc86876b.swift@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 X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: b7f2cb1528eb9c41bfc7c7f17a6a75fbbc86876b X-VCS-Branch: master Date: Mon, 11 Nov 2013 13:45:52 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f1efa4d8-0f08-4b20-9166-a0bdd848f584 X-Archives-Hash: e64edfbbf88e6f962e6cd93a1083c0d7 commit: b7f2cb1528eb9c41bfc7c7f17a6a75fbbc86876b Author: Dominick Grift <dominick.grift <AT> gmail <DOT> com> AuthorDate: Sun Sep 29 16:42:52 2013 +0000 Commit: Sven Vermeulen <swift <AT> gentoo <DOT> org> CommitDate: Mon Nov 11 13:43:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=b7f2cb15 networkmanager: added interfaces that fedora calls for dhcpc. In Debian it was confirmed that at least dhclient manages /var/lib/NetworkManager/dhclient-eth0.conf Signed-off-by: Dominick Grift <dominick.grift <AT> gmail.com> --- policy/modules/contrib/networkmanager.if | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/policy/modules/contrib/networkmanager.if b/policy/modules/contrib/networkmanager.if index d1785e5..5bf874a 100644 --- a/policy/modules/contrib/networkmanager.if +++ b/policy/modules/contrib/networkmanager.if @@ -173,6 +173,26 @@ interface(`networkmanager_signal',` ######################################## ## <summary> +## Create, read, and write +## networkmanager library files. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`networkmanager_manage_lib_files',` + gen_require(` + type NetworkManager_var_lib_t; + ') + + files_search_var_lib($1) + manage_files_pattern($1, NetworkManager_var_lib_t, NetworkManager_var_lib_t) +') + +######################################## +## <summary> ## Read networkmanager lib files. ## </summary> ## <param name="domain"> @@ -230,6 +250,26 @@ interface(`networkmanager_read_pid_files',` allow $1 NetworkManager_var_run_t:file read_file_perms; ') +#################################### +## <summary> +## Connect to networkmanager over +## a unix domain stream socket. +## </summary> +## <param name="domain"> +## <summary> +## Domain allowed access. +## </summary> +## </param> +# +interface(`networkmanager_stream_connect',` + gen_require(` + type NetworkManager_t, NetworkManager_var_run_t; + ') + + files_search_pids($1) + stream_connect_pattern($1, NetworkManager_var_run_t, NetworkManager_var_run_t, NetworkManager_t) +') + ######################################## ## <summary> ## All of the rules required to