From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 512ED138247 for ; 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 ; 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 ; 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 ; Mon, 11 Nov 2013 13:45:52 +0000 (UTC) From: "Sven Vermeulen" 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" 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: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f1efa4d8-0f08-4b20-9166-a0bdd848f584 X-Archives-Hash: e64edfbbf88e6f962e6cd93a1083c0d7 commit: b7f2cb1528eb9c41bfc7c7f17a6a75fbbc86876b Author: Dominick Grift gmail com> AuthorDate: Sun Sep 29 16:42:52 2013 +0000 Commit: Sven Vermeulen gentoo 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 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',` ######################################## ## +## Create, read, and write +## networkmanager library files. +## +## +## +## Domain allowed access. +## +## +# +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) +') + +######################################## +## ## Read networkmanager lib files. ## ## @@ -230,6 +250,26 @@ interface(`networkmanager_read_pid_files',` allow $1 NetworkManager_var_run_t:file read_file_perms; ') +#################################### +## +## Connect to networkmanager over +## a unix domain stream socket. +## +## +## +## Domain allowed access. +## +## +# +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) +') + ######################################## ## ## All of the rules required to