From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 78F8815827B for ; Tue, 02 Sep 2025 22:15:29 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 66205340DEB for ; Tue, 02 Sep 2025 22:15:29 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id D1612110574; Tue, 02 Sep 2025 22:15:20 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id C5733110574 for ; Tue, 02 Sep 2025 22:15:20 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 80B553408A2 for ; Tue, 02 Sep 2025 22:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3966C351C for ; Tue, 02 Sep 2025 22:15:18 +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: <1756850461.beb9a141a7b43b6583e2191c395b60454abc4eb5.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/systemd.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: beb9a141a7b43b6583e2191c395b60454abc4eb5 X-VCS-Branch: master Date: Tue, 02 Sep 2025 22:15:18 +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: 623f29a3-1bcd-4ad3-a713-009ecb3f79b3 X-Archives-Hash: e6bb1cfc612786eac33b44feceb0bb5b commit: beb9a141a7b43b6583e2191c395b60454abc4eb5 Author: Kenton Groombridge gentoo org> AuthorDate: Sat Jul 26 02:45:40 2025 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Sep 2 22:01:01 2025 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=beb9a141 systemd: allow users to run systemd-cgtop Signed-off-by: Kenton Groombridge gentoo.org> Signed-off-by: Jason Zaman gentoo.org> policy/modules/system/systemd.if | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if index 8dc8f5899..467c7b70b 100644 --- a/policy/modules/system/systemd.if +++ b/policy/modules/system/systemd.if @@ -26,7 +26,7 @@ template(`systemd_role_template',` class system { disable enable reload start status stop }; attribute systemd_user_session_type, systemd_log_parse_env_type; attribute systemd_user_activated_sock_file_type, systemd_user_unix_stream_activated_socket_type; - type systemd_analyze_exec_t; + type systemd_analyze_exec_t, systemd_cgtop_exec_t; type systemd_conf_home_t, systemd_data_home_t; type systemd_tmpfiles_exec_t; type systemd_user_runtime_t, systemd_user_runtime_notify_t; @@ -197,6 +197,7 @@ template(`systemd_role_template',` allow $3 systemd_conf_home_t:service { reload start status stop }; can_exec($3, systemd_analyze_exec_t) + can_exec($3, systemd_cgtop_exec_t) init_dbus_chat($3) init_search_var_lib_dirs($3)