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 0AB241581D3 for ; Tue, 14 May 2024 19:43:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4FC95E2A2D; Tue, 14 May 2024 19:43:00 +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 397AEE2A2E for ; Tue, 14 May 2024 19:43:00 +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 7EEC1342F65 for ; Tue, 14 May 2024 19:42:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F0511ADF for ; Tue, 14 May 2024 19:42:56 +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: <1715708591.ef89017d69182a71eb3cd46369ba5bb079f6f165.concord@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/admin/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/admin/bootloader.te policy/modules/admin/portage.te X-VCS-Directories: policy/modules/admin/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: ef89017d69182a71eb3cd46369ba5bb079f6f165 X-VCS-Branch: master Date: Tue, 14 May 2024 19:42:56 +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: 7fff2979-aa0d-45eb-935f-a841f39e1f4d X-Archives-Hash: f59acfaf436b1cf5543e9b7094cf2e93 commit: ef89017d69182a71eb3cd46369ba5bb079f6f165 Author: Grzegorz Filo wp pl> AuthorDate: Thu Apr 4 18:09:08 2024 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Tue May 14 17:43:11 2024 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ef89017d remove unnecessary code Signed-off-by: Grzegorz Filo wp.pl> Closes: https://github.com/gentoo/hardened-refpolicy/pull/2 Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/admin/bootloader.te | 5 ----- policy/modules/admin/portage.te | 1 - 2 files changed, 6 deletions(-) diff --git a/policy/modules/admin/bootloader.te b/policy/modules/admin/bootloader.te index 81748a5f3..5a7e1cd4d 100644 --- a/policy/modules/admin/bootloader.te +++ b/policy/modules/admin/bootloader.te @@ -263,8 +263,3 @@ optional_policy(` optional_policy(` rpm_rw_pipes(bootloader_t) ') - -ifdef(`distro_gentoo',` - # Fix bug #537652 - grub2-mkconfig has search rights needed on current dir (usually user home dir) - userdom_search_user_home_dirs(bootloader_t) -') diff --git a/policy/modules/admin/portage.te b/policy/modules/admin/portage.te index 2cd5d0482..c42552651 100644 --- a/policy/modules/admin/portage.te +++ b/policy/modules/admin/portage.te @@ -173,7 +173,6 @@ allow portage_t self:process { setfscreate }; # - kill for mysql merging, at least allow portage_t self:capability { kill setfcap sys_nice }; allow portage_t self:netlink_route_socket create_netlink_socket_perms; -dontaudit portage_t self:capability { dac_read_search }; # user post-sync scripts can_exec(portage_t, portage_conf_t)