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 C3E22138A1A for ; Tue, 20 Jan 2015 15:08:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9318CE0994; Tue, 20 Jan 2015 15:08:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 788E7E0993 for ; Tue, 20 Jan 2015 15:08:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BB1DF340701 for ; Tue, 20 Jan 2015 15:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA35EFFD4 for ; Tue, 20 Jan 2015 15:08:52 +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: <1421764351.7e4e70e1102bfcbaf60948cb92cb76744e686d5b.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next 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: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 7e4e70e1102bfcbaf60948cb92cb76744e686d5b X-VCS-Branch: next Date: Tue, 20 Jan 2015 15:08: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: d63e5d73-4318-445d-be47-66115d5d1595 X-Archives-Hash: 2e89894173db50685ec70639c4ba56fc commit: 7e4e70e1102bfcbaf60948cb92cb76744e686d5b Author: Jason Zaman perfinion com> AuthorDate: Tue Jan 20 14:23:22 2015 +0000 Commit: Jason Zaman perfinion com> CommitDate: Tue Jan 20 14:32:31 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=7e4e70e1 Introduce networkmanager_rw_rawip_sockets --- policy/modules/contrib/networkmanager.if | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/policy/modules/contrib/networkmanager.if b/policy/modules/contrib/networkmanager.if index 5aced8c..b512ce0 100644 --- a/policy/modules/contrib/networkmanager.if +++ b/policy/modules/contrib/networkmanager.if @@ -381,3 +381,23 @@ interface(`networkmanager_run_wpa_cli',` networkmanager_domtrans_wpa_cli($1) role $2 types wpa_cli_t; ') + +# Gentoo specific interfaces follow but not allowed ifdef + +######################################## +## +## Read and write networkmanager rawip sockets. +## +## +## +## Domain allowed access. +## +## +# +interface(`networkmanager_rw_rawip_sockets',` + gen_require(` + type NetworkManager_t; + ') + + allow $1 NetworkManager_t:rawip_socket { read write }; +')