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 A1DC51384B4 for ; Thu, 17 Dec 2015 18:50:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6767C21C045; Thu, 17 Dec 2015 18:49:58 +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 95C1B21C050 for ; Thu, 17 Dec 2015 18:49:47 +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 B58FB33FE7D for ; Thu, 17 Dec 2015 18:49:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C0E5ECF4 for ; Thu, 17 Dec 2015 18:49:42 +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: <1450367855.5594149bf7f62722500151aedf29711bf607105a.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/geoclue.fc policy/modules/contrib/geoclue.if policy/modules/contrib/geoclue.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 5594149bf7f62722500151aedf29711bf607105a X-VCS-Branch: next Date: Thu, 17 Dec 2015 18:49:42 +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: 5d8513b9-a1b5-4050-8317-fd513fb1b716 X-Archives-Hash: 5e3c7fc59ca8c4784264d8c82e93541f commit: 5594149bf7f62722500151aedf29711bf607105a Author: Laurent Bigonville bigon be> AuthorDate: Wed Dec 9 13:26:24 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Dec 17 15:57:35 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5594149b Add initial geoclue 2 module This has been tested with geoclue 2.4.0 on Debian policy/modules/contrib/geoclue.fc | 7 +++++++ policy/modules/contrib/geoclue.if | 1 + policy/modules/contrib/geoclue.te | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/policy/modules/contrib/geoclue.fc b/policy/modules/contrib/geoclue.fc new file mode 100644 index 0000000..faca546 --- /dev/null +++ b/policy/modules/contrib/geoclue.fc @@ -0,0 +1,7 @@ +/etc/geoclue(/.*)? gen_context(system_u:object_r:geoclue_etc_t,s0) + +/usr/lib/geoclue-2.0/geoclue -- gen_context(system_u:object_r:geoclue_exec_t,s0) + +/usr/libexec/geoclue -- gen_context(system_u:object_r:geoclue_exec_t,s0) + +/var/lib/geoclue(/.*)? gen_context(system_u:object_r:geoclue_var_lib_t,s0) diff --git a/policy/modules/contrib/geoclue.if b/policy/modules/contrib/geoclue.if new file mode 100644 index 0000000..9df3608 --- /dev/null +++ b/policy/modules/contrib/geoclue.if @@ -0,0 +1 @@ +## Geoclue is a D-Bus service that provides location information. diff --git a/policy/modules/contrib/geoclue.te b/policy/modules/contrib/geoclue.te new file mode 100644 index 0000000..fc72974 --- /dev/null +++ b/policy/modules/contrib/geoclue.te @@ -0,0 +1,37 @@ +policy_module(geoclue, 1.0.0) + +type geoclue_t; +type geoclue_exec_t; +dbus_system_domain(geoclue_t, geoclue_exec_t) + +type geoclue_etc_t; +files_config_file(geoclue_etc_t) + +type geoclue_var_lib_t; +files_type(geoclue_var_lib_t) + +read_files_pattern(geoclue_t, geoclue_etc_t, geoclue_etc_t) + +corenet_tcp_connect_http_port(geoclue_t) + +dev_read_urand(geoclue_t) + +# Reads /etc/nsswitch.conf +files_read_etc_files(geoclue_t) + +miscfiles_read_generic_certs(geoclue_t) +miscfiles_read_localization(geoclue_t) + +sysnet_dns_name_resolve(geoclue_t) + +optional_policy(` + avahi_dbus_chat(geoclue_t) +') + +optional_policy(` + networkmanager_dbus_chat(geoclue_t) +') + +optional_policy(` + modemmanager_dbus_chat(geoclue_t) +') 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 8D2151384B4 for ; Thu, 17 Dec 2015 16:11:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0AB3521C024; Thu, 17 Dec 2015 16:10:55 +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 68AB921C025 for ; Thu, 17 Dec 2015 16:10:44 +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 6D16233F9D2 for ; Thu, 17 Dec 2015 16:10:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1EBCBCF5 for ; Thu, 17 Dec 2015 16:10:40 +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: <1450367855.5594149bf7f62722500151aedf29711bf607105a.perfinion@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/geoclue.fc policy/modules/contrib/geoclue.if policy/modules/contrib/geoclue.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 5594149bf7f62722500151aedf29711bf607105a X-VCS-Branch: master Date: Thu, 17 Dec 2015 16:10:40 +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: 03002336-e42f-4f7e-a0c3-03484652177b X-Archives-Hash: 1e85ceafa7b7c46d4ca45e1bcbbd36e8 Message-ID: <20151217161040.334REGgOER4dI1qKxTdrAp8fH5lQRxiVOX3VhXIA7Ms@z> commit: 5594149bf7f62722500151aedf29711bf607105a Author: Laurent Bigonville bigon be> AuthorDate: Wed Dec 9 13:26:24 2015 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Dec 17 15:57:35 2015 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5594149b Add initial geoclue 2 module This has been tested with geoclue 2.4.0 on Debian policy/modules/contrib/geoclue.fc | 7 +++++++ policy/modules/contrib/geoclue.if | 1 + policy/modules/contrib/geoclue.te | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) diff --git a/policy/modules/contrib/geoclue.fc b/policy/modules/contrib/geoclue.fc new file mode 100644 index 0000000..faca546 --- /dev/null +++ b/policy/modules/contrib/geoclue.fc @@ -0,0 +1,7 @@ +/etc/geoclue(/.*)? gen_context(system_u:object_r:geoclue_etc_t,s0) + +/usr/lib/geoclue-2.0/geoclue -- gen_context(system_u:object_r:geoclue_exec_t,s0) + +/usr/libexec/geoclue -- gen_context(system_u:object_r:geoclue_exec_t,s0) + +/var/lib/geoclue(/.*)? gen_context(system_u:object_r:geoclue_var_lib_t,s0) diff --git a/policy/modules/contrib/geoclue.if b/policy/modules/contrib/geoclue.if new file mode 100644 index 0000000..9df3608 --- /dev/null +++ b/policy/modules/contrib/geoclue.if @@ -0,0 +1 @@ +## Geoclue is a D-Bus service that provides location information. diff --git a/policy/modules/contrib/geoclue.te b/policy/modules/contrib/geoclue.te new file mode 100644 index 0000000..fc72974 --- /dev/null +++ b/policy/modules/contrib/geoclue.te @@ -0,0 +1,37 @@ +policy_module(geoclue, 1.0.0) + +type geoclue_t; +type geoclue_exec_t; +dbus_system_domain(geoclue_t, geoclue_exec_t) + +type geoclue_etc_t; +files_config_file(geoclue_etc_t) + +type geoclue_var_lib_t; +files_type(geoclue_var_lib_t) + +read_files_pattern(geoclue_t, geoclue_etc_t, geoclue_etc_t) + +corenet_tcp_connect_http_port(geoclue_t) + +dev_read_urand(geoclue_t) + +# Reads /etc/nsswitch.conf +files_read_etc_files(geoclue_t) + +miscfiles_read_generic_certs(geoclue_t) +miscfiles_read_localization(geoclue_t) + +sysnet_dns_name_resolve(geoclue_t) + +optional_policy(` + avahi_dbus_chat(geoclue_t) +') + +optional_policy(` + networkmanager_dbus_chat(geoclue_t) +') + +optional_policy(` + modemmanager_dbus_chat(geoclue_t) +')