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 A219A138A1A for ; Sun, 25 Jan 2015 13:46:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45F3BE0888; Sun, 25 Jan 2015 13:46:42 +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 62E02E0888 for ; Sun, 25 Jan 2015 13:46:41 +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 A2C9C33EAF3 for ; Sun, 25 Jan 2015 13:46:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C6811057F for ; Sun, 25 Jan 2015 13:46:39 +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: <1422193520.11699dbbcad3bbd69aa43cfb46d56397e0fc95b8.swift@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: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 11699dbbcad3bbd69aa43cfb46d56397e0fc95b8 X-VCS-Branch: next Date: Sun, 25 Jan 2015 13:46:39 +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: e9a65f29-5348-45bd-9f97-7235d0faf1cb X-Archives-Hash: ba0388e48f268f5adf61ef3c07d8ce9e commit: 11699dbbcad3bbd69aa43cfb46d56397e0fc95b8 Author: Jason Zaman perfinion com> AuthorDate: Tue Jan 20 14:23:22 2015 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jan 25 13:45:20 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=11699dbb 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 }; +')