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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8CC87158089 for ; Fri, 6 Oct 2023 16:44:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 253AF2BC031; Fri, 6 Oct 2023 16:44:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 096072BC033 for ; Fri, 6 Oct 2023 16:44:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 231ED335D1C for ; Fri, 6 Oct 2023 16:44:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C70029E9 for ; Fri, 6 Oct 2023 16:44:33 +0000 (UTC) From: "Kenton Groombridge" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kenton Groombridge" Message-ID: <1696606209.c476335905f6b809c1f4ba083b071fab067aa1e5.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/jabber.te policy/modules/services/matrixd.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: c476335905f6b809c1f4ba083b071fab067aa1e5 X-VCS-Branch: master Date: Fri, 6 Oct 2023 16:44:33 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5754d8f9-9f9a-49d3-8063-43c0a8550c99 X-Archives-Hash: 840f4adba9cc2541e045438012107e9b commit: c476335905f6b809c1f4ba083b071fab067aa1e5 Author: Russell Coker coker com au> AuthorDate: Tue Sep 26 13:48:31 2023 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Fri Oct 6 15:30:09 2023 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c4763359 allow jabbers to create sock file and allow matrixd to read sysfs (#705) * Allow jabberd_domain to create sockets in it's var/lib dir Allow matrixd_t to read sysfs Signed-off-by: Russell Coker coker.com.au> * Changed to manage_sock_file_perms to allow unlink Signed-off-by: Russell Coker coker.com.au> --------- Signed-off-by: Russell Coker coker.com.au> Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/services/jabber.te | 1 + policy/modules/services/matrixd.te | 1 + 2 files changed, 2 insertions(+) diff --git a/policy/modules/services/jabber.te b/policy/modules/services/jabber.te index 6003cc9fb..6c8e45de5 100644 --- a/policy/modules/services/jabber.te +++ b/policy/modules/services/jabber.te @@ -39,6 +39,7 @@ allow jabberd_domain self:tcp_socket { accept listen }; manage_files_pattern(jabberd_domain, jabberd_var_lib_t, jabberd_var_lib_t) allow jabberd_domain jabberd_var_lib_t:dir manage_dir_perms; +allow jabberd_domain jabberd_var_lib_t:sock_file manage_sock_file_perms; kernel_read_system_state(jabberd_domain) diff --git a/policy/modules/services/matrixd.te b/policy/modules/services/matrixd.te index 4ac31d901..c396a3d7c 100644 --- a/policy/modules/services/matrixd.te +++ b/policy/modules/services/matrixd.te @@ -83,6 +83,7 @@ corenet_udp_bind_generic_node(matrixd_t) corenet_udp_bind_generic_port(matrixd_t) corenet_udp_bind_reserved_port(matrixd_t) +dev_read_sysfs(matrixd_t) dev_read_urand(matrixd_t) files_read_etc_files(matrixd_t)