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 894AA138A1A for ; Thu, 29 Jan 2015 06:51:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B2C85E07F2; Thu, 29 Jan 2015 06:51:53 +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 CF2A2E07F0 for ; Thu, 29 Jan 2015 06:51:52 +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 0F07634070E for ; Thu, 29 Jan 2015 06:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 697F0108D7 for ; Thu, 29 Jan 2015 06:51:49 +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: <1422254548.0e6ef13cb306c6334acaf45ac032a9db4bda3680.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: 0e6ef13cb306c6334acaf45ac032a9db4bda3680 X-VCS-Branch: next Date: Thu, 29 Jan 2015 06:51:49 +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: e5a7a80c-7dad-40ba-9eea-670cd12ce0ae X-Archives-Hash: b10814be917e0de99ba3511a1045a49f commit: 0e6ef13cb306c6334acaf45ac032a9db4bda3680 Author: Jason Zaman perfinion com> AuthorDate: Tue Jan 20 14:23:22 2015 +0000 Commit: Jason Zaman perfinion com> CommitDate: Mon Jan 26 06:42:28 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=0e6ef13c 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 }; +')