From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ECF3413832E for ; Sun, 31 Jul 2016 10:38:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81015E0888; Sun, 31 Jul 2016 10:38:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EDA40E0888 for ; Sun, 31 Jul 2016 10:38:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 82E12340C9C for ; Sun, 31 Jul 2016 10:38:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CE1D1E62 for ; Sun, 31 Jul 2016 10:38:17 +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: <1469961458.a6f544e3a81cd674dc4bbda69ac49862a0796e7e.swift@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/boinc.fc policy/modules/contrib/boinc.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: swift X-VCS-Committer-Name: Sven Vermeulen X-VCS-Revision: a6f544e3a81cd674dc4bbda69ac49862a0796e7e X-VCS-Branch: master Date: Sun, 31 Jul 2016 10:38:17 +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: c5a459c1-daa7-4aeb-aacc-f9dbe82108ba X-Archives-Hash: f688cf72a17ccf8fa131a11f97a0a66b commit: a6f544e3a81cd674dc4bbda69ac49862a0796e7e Author: Chris PeBenito ieee org> AuthorDate: Sat Jul 30 20:25:05 2016 +0000 Commit: Sven Vermeulen gentoo org> CommitDate: Sun Jul 31 10:37:38 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a6f544e3 Boinc updates from Russell Coker. policy/modules/contrib/boinc.fc | 4 ++++ policy/modules/contrib/boinc.te | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/policy/modules/contrib/boinc.fc b/policy/modules/contrib/boinc.fc index 6d3ccad..e1e53a6 100644 --- a/policy/modules/contrib/boinc.fc +++ b/policy/modules/contrib/boinc.fc @@ -1,9 +1,13 @@ +/etc/boinc-client/global_prefs_override.xml -- gen_context(system_u:object_r:boinc_var_lib_t,s0) /etc/rc\.d/init\.d/boinc-client -- gen_context(system_u:object_r:boinc_initrc_exec_t,s0) +/usr/bin/boinc -- gen_context(system_u:object_r:boinc_exec_t,s0) /usr/bin/boinc_client -- gen_context(system_u:object_r:boinc_exec_t,s0) /var/lib/boinc(/.*)? gen_context(system_u:object_r:boinc_var_lib_t,s0) +/var/lib/boinc-client(/.*)? gen_context(system_u:object_r:boinc_var_lib_t,s0) /var/lib/boinc/projects(/.*)? gen_context(system_u:object_r:boinc_project_var_lib_t,s0) /var/lib/boinc/slots(/.*)? gen_context(system_u:object_r:boinc_project_var_lib_t,s0) /var/log/boinc\.log.* -- gen_context(system_u:object_r:boinc_log_t,s0) +/var/log/boincerr\.log.* -- gen_context(system_u:object_r:boinc_log_t,s0) diff --git a/policy/modules/contrib/boinc.te b/policy/modules/contrib/boinc.te index c24cb7b..58468ea 100644 --- a/policy/modules/contrib/boinc.te +++ b/policy/modules/contrib/boinc.te @@ -1,4 +1,4 @@ -policy_module(boinc, 1.3.0) +policy_module(boinc, 1.3.1) ######################################## # @@ -54,6 +54,8 @@ allow boinc_t self:shm create_shm_perms; allow boinc_t self:fifo_file rw_fifo_file_perms; allow boinc_t self:sem create_sem_perms; +can_exec(boinc_t, boinc_exec_t) + manage_dirs_pattern(boinc_t, boinc_tmp_t, boinc_tmp_t) manage_files_pattern(boinc_t, boinc_tmp_t, boinc_tmp_t) files_tmp_filetrans(boinc_t, boinc_tmp_t, { dir file }) @@ -71,12 +73,13 @@ manage_files_pattern(boinc_t, boinc_project_var_lib_t, boinc_project_var_lib_t) filetrans_pattern(boinc_t, boinc_var_lib_t, boinc_project_var_lib_t, dir, "slots") filetrans_pattern(boinc_t, boinc_var_lib_t, boinc_project_var_lib_t, dir, "projects") -append_files_pattern(boinc_t, boinc_log_t, boinc_log_t) +manage_files_pattern(boinc_t, boinc_log_t, boinc_log_t) create_files_pattern(boinc_t, boinc_log_t, boinc_log_t) setattr_files_pattern(boinc_t, boinc_log_t, boinc_log_t) logging_log_filetrans(boinc_t, boinc_log_t, file) can_exec(boinc_t, boinc_var_lib_t) +libs_exec_lib_files(boinc_t) domtrans_pattern(boinc_t, boinc_project_var_lib_t, boinc_project_t) @@ -188,8 +191,16 @@ corenet_sendrecv_boinc_client_packets(boinc_project_t) corenet_tcp_connect_boinc_port(boinc_project_t) corenet_tcp_sendrecv_boinc_port(boinc_project_t) +dev_getattr_input_dev(boinc_t) +dev_getattr_mouse_dev(boinc_t) + files_dontaudit_search_home(boinc_project_t) +term_getattr_ptmx(boinc_t) +term_getattr_generic_ptys(boinc_t) + +userdom_getattr_user_ttys(boinc_t) + optional_policy(` java_exec(boinc_project_t) ')