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 E95D513877A for ; Wed, 25 Jun 2014 19:59:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A7A9E0AA0; Wed, 25 Jun 2014 19:59:12 +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 0A6BDE0AA0 for ; Wed, 25 Jun 2014 19:59:11 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22DB133F8C7 for ; Wed, 25 Jun 2014 19:59:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id DA09819146 for ; Wed, 25 Jun 2014 19:59:09 +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: <1403726295.9dafa9a3a637709131e17d7cab38d29afd45a796.swift@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/, policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/networkmanager.te policy/modules/system/sysnetwork.te X-VCS-Directories: policy/modules/contrib/ policy/modules/system/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: 9dafa9a3a637709131e17d7cab38d29afd45a796 X-VCS-Branch: master Date: Wed, 25 Jun 2014 19:59:09 +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: 9d06f19d-3556-4312-b28e-e412525fecc1 X-Archives-Hash: 812b03927b34d84cfe978c4d2f4d35d7 commit: 9dafa9a3a637709131e17d7cab38d29afd45a796 Author: Sven Vermeulen siphos be> AuthorDate: Wed Jun 25 19:58:15 2014 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Wed Jun 25 19:58:15 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=9dafa9a3 Add NetworkManager_t and dhcpc_t as resolvconf clients --- policy/modules/contrib/networkmanager.te | 11 +++++++++++ policy/modules/system/sysnetwork.te | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/policy/modules/contrib/networkmanager.te b/policy/modules/contrib/networkmanager.te index a4a45c0..f70479a 100644 --- a/policy/modules/contrib/networkmanager.te +++ b/policy/modules/contrib/networkmanager.te @@ -367,6 +367,17 @@ miscfiles_read_localization(wpa_cli_t) term_dontaudit_use_console(wpa_cli_t) ifdef(`distro_gentoo',` + # + # NetworkManager_t policy + # + + optional_policy(` + resolvconf_client_domain(NetworkManager_t) + ') + + # + # wpa_cli_t policy + # manage_files_pattern(wpa_cli_t, wpa_cli_var_run_t, wpa_cli_var_run_t) files_pid_filetrans(wpa_cli_t, wpa_cli_var_run_t, file) diff --git a/policy/modules/system/sysnetwork.te b/policy/modules/system/sysnetwork.te index 3f79de9..945ffb5 100644 --- a/policy/modules/system/sysnetwork.te +++ b/policy/modules/system/sysnetwork.te @@ -406,4 +406,8 @@ ifdef(`distro_gentoo',` # Fixes bug 468878 files_pid_filetrans(dhcpc_t, dhcpc_var_run_t, sock_file) allow dhcpc_t self:unix_stream_socket { create_stream_socket_perms connectto }; + + optional_policy(` + resolvconf_client_domain(dhcpc_t) + ') ')