From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1338600-garchives=archives.gentoo.org@lists.gentoo.org> 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 4D531158086 for <garchives@archives.gentoo.org>; Thu, 11 Nov 2021 21:27:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1D202BC130; Thu, 11 Nov 2021 21:27:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D356B2BC124 for <gentoo-commits@lists.gentoo.org>; Thu, 11 Nov 2021 21:27:38 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A6743430F8 for <gentoo-commits@lists.gentoo.org>; Thu, 11 Nov 2021 21:27:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB4BB1BF for <gentoo-commits@lists.gentoo.org>; Thu, 11 Nov 2021 21:27:35 +0000 (UTC) From: "Jason Zaman" <perfinion@gentoo.org> 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" <perfinion@gentoo.org> Message-ID: <1636666010.80a9de80df53b7ad4160b0fcb38a6b38a580f575.perfinion@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/rngd.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 80a9de80df53b7ad4160b0fcb38a6b38a580f575 X-VCS-Branch: master Date: Thu, 11 Nov 2021 21:27:35 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 875a5572-7859-4163-a418-6795605cc238 X-Archives-Hash: f8312c2855b08f8cf41c498843ae6adb commit: 80a9de80df53b7ad4160b0fcb38a6b38a580f575 Author: Yi Zhao <yi.zhao <AT> windriver <DOT> com> AuthorDate: Mon Oct 18 06:56:45 2021 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Thu Nov 11 21:26:50 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=80a9de80 rngd: fixes for rngd * allow rngd_t to read certificates * allow rngd_t to getsched/setsched Fixes: avc: denied { search } for pid=332 comm="rngd" name="ssl" dev="vda" ino=588 scontext=system_u:system_r:rngd_t tcontext=system_u:object_r:cert_t tclass=dir permissive=1 avc: denied { read } for pid=332 comm="rngd" name="openssl.cnf" dev="vda" ino=849 scontext=system_u:system_r:rngd_t tcontext=system_u:object_r:cert_t tclass=file permissive=1 avc: denied { open } for pid=332 comm="rngd" path="/etc/ssl/openssl.cnf" dev="vda" ino=849 scontext=system_u:system_r:rngd_t tcontext=system_u:object_r:cert_t tclass=file permissive=1 avc: denied { getattr } for pid=332 comm="rngd" path="/etc/ssl/openssl.cnf" dev="vda" ino=849 scontext=system_u:system_r:rngd_t tcontext=system_u:object_r:cert_t tclass=file permissive=1 avc: denied { getsched } for pid=370 comm="rngd" scontext=system_u:system_r:rngd_t tcontext=system_u:system_r:rngd_t tclass=process permissive=1 avc: denied { setsched } for pid=370 comm="rngd" scontext=system_u:system_r:rngd_t tcontext=system_u:system_r:rngd_t tclass=process permissive=1 Signed-off-by: Yi Zhao <yi.zhao <AT> windriver.com> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> policy/modules/services/rngd.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/rngd.te b/policy/modules/services/rngd.te index 29dff428..177199e8 100644 --- a/policy/modules/services/rngd.te +++ b/policy/modules/services/rngd.te @@ -21,7 +21,7 @@ files_runtime_file(rngd_runtime_t) # allow rngd_t self:capability { ipc_lock sys_admin }; -allow rngd_t self:process signal; +allow rngd_t self:process { setsched getsched signal }; allow rngd_t self:fifo_file rw_fifo_file_perms; allow rngd_t self:unix_stream_socket { accept listen }; @@ -41,3 +41,4 @@ files_read_etc_files(rngd_t) logging_send_syslog_msg(rngd_t) miscfiles_read_localization(rngd_t) +miscfiles_read_generic_certs(rngd_t)