From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1381050-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 406E615808B for <garchives@archives.gentoo.org>; Thu, 31 Mar 2022 03:31:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 99D55E07D1; Thu, 31 Mar 2022 03:31:29 +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 DA2ABE07D8 for <gentoo-commits@lists.gentoo.org>; Thu, 31 Mar 2022 03:31:28 +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 EBB673414EC for <gentoo-commits@lists.gentoo.org>; Thu, 31 Mar 2022 03:31:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 538F1380 for <gentoo-commits@lists.gentoo.org>; Thu, 31 Mar 2022 03:31:24 +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: <1648694453.96e2577855dad18d23e011de5d150f72eca4333d.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/getty.te policy/modules/system/locallogin.te X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 96e2577855dad18d23e011de5d150f72eca4333d X-VCS-Branch: master Date: Thu, 31 Mar 2022 03:31:24 +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: 3691ac23-86ed-47ae-8d08-55fde12ee2c8 X-Archives-Hash: a71d7330d4d37ab3a59d71943bf46bf7 commit: 96e2577855dad18d23e011de5d150f72eca4333d Author: Kenton Groombridge <me <AT> concord <DOT> sh> AuthorDate: Tue Nov 30 16:31:09 2021 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Thu Mar 31 02:40:53 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=96e25778 getty, locallogin: cgroup fixes Signed-off-by: Kenton Groombridge <me <AT> concord.sh> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> policy/modules/system/getty.te | 2 ++ policy/modules/system/locallogin.te | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te index e8c5a1b4..cba1f8ab 100644 --- a/policy/modules/system/getty.te +++ b/policy/modules/system/getty.te @@ -70,6 +70,8 @@ files_search_spool(getty_t) files_dontaudit_search_var_lib(getty_t) fs_search_auto_mountpoints(getty_t) +fs_getattr_cgroup(getty_t) +fs_search_cgroup_dirs(getty_t) # for error condition handling fs_getattr_xattr_fs(getty_t) diff --git a/policy/modules/system/locallogin.te b/policy/modules/system/locallogin.te index 6d5e948d..7fec15aa 100644 --- a/policy/modules/system/locallogin.te +++ b/policy/modules/system/locallogin.te @@ -55,6 +55,10 @@ allow local_login_t local_login_tmp_t:dir manage_dir_perms; allow local_login_t local_login_tmp_t:file manage_file_perms; files_tmp_filetrans(local_login_t, local_login_tmp_t, { file dir }) +fs_getattr_cgroup(local_login_t) +fs_search_cgroup_dirs(local_login_t) +fs_getattr_xattr_fs(local_login_t) + kernel_read_system_state(local_login_t) kernel_read_kernel_sysctls(local_login_t) kernel_search_key(local_login_t)