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 909C5158087 for ; Mon, 7 Feb 2022 02:15:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 986832BC029; Mon, 7 Feb 2022 02:15:02 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 7E0712BC025 for ; Mon, 7 Feb 2022 02:15:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 7A53B342CE2 for ; Mon, 7 Feb 2022 02:15:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A7CC52D2 for ; Mon, 7 Feb 2022 02:14:58 +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: <1644199790.09a4816dac1fb5111b3b67b71bdf7942b2c02c42.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/logging.te policy/modules/system/modutils.fc policy/modules/system/systemd.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 09a4816dac1fb5111b3b67b71bdf7942b2c02c42 X-VCS-Branch: master Date: Mon, 7 Feb 2022 02:14:58 +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: e5472297-6d97-489c-bdb5-667ef1ad4b63 X-Archives-Hash: e2eac80bbf0b9752bbdd7d89bfda4697 commit: 09a4816dac1fb5111b3b67b71bdf7942b2c02c42 Author: Chris PeBenito microsoft com> AuthorDate: Wed Jan 5 17:02:06 2022 +0000 Commit: Jason Zaman gentoo org> CommitDate: Mon Feb 7 02:09:50 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=09a4816d systemd: Updates for generators and kmod-static-nodes.service. Signed-off-by: Chris PeBenito microsoft.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/logging.te | 1 + policy/modules/system/modutils.fc | 1 + policy/modules/system/systemd.te | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te index 451155d3..6cc5c16c 100644 --- a/policy/modules/system/logging.te +++ b/policy/modules/system/logging.te @@ -549,6 +549,7 @@ ifdef(`init_systemd',` init_dgram_send(syslogd_t) init_read_runtime_pipes(syslogd_t) init_read_runtime_symlinks(syslogd_t) + init_read_runtime_files(syslogd_t) init_read_state(syslogd_t) # needed for systemd-initrd case when syslog socket is unlabelled diff --git a/policy/modules/system/modutils.fc b/policy/modules/system/modutils.fc index cfcfb715..88b30551 100644 --- a/policy/modules/system/modutils.fc +++ b/policy/modules/system/modutils.fc @@ -10,6 +10,7 @@ ifdef(`distro_gentoo',` /run/modules-load\.d/.*\.conf -- gen_context(system_u:object_r:modules_conf_t,s0) ') +/run/tmpfiles\.d/static-nodes\.conf -- gen_context(system_u:object_r:kmod_tmpfiles_conf_t,s0) /run/tmpfiles\.d/kmod\.conf -- gen_context(system_u:object_r:kmod_tmpfiles_conf_t,s0) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 7ccfbaf2..68fb96ec 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -510,7 +510,7 @@ systemd_log_parse_environment(systemd_generator_t) term_use_unallocated_ttys(systemd_generator_t) -udev_search_runtime(systemd_generator_t) +udev_read_runtime_files(systemd_generator_t) ifdef(`distro_gentoo',` corecmd_shell_entry_type(systemd_generator_t) @@ -1469,6 +1469,8 @@ files_runtime_filetrans(systemd_sessions_t, systemd_sessions_runtime_t, file) fs_getattr_all_fs(systemd_sessions_t) fs_search_cgroup_dirs(systemd_sessions_t) +fs_search_tmpfs(systemd_sessions_t) +fs_search_ramfs(systemd_sessions_t) kernel_read_kernel_sysctls(systemd_sessions_t) kernel_dontaudit_getattr_proc(systemd_sessions_t) @@ -1627,6 +1629,7 @@ init_read_state(systemd_tmpfiles_t) init_relabel_utmp(systemd_tmpfiles_t) init_relabel_var_lib_dirs(systemd_tmpfiles_t) +init_read_runtime_files(systemd_tmpfiles_t) logging_manage_generic_logs(systemd_tmpfiles_t) logging_manage_generic_log_dirs(systemd_tmpfiles_t)