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 2D70D158020 for ; Wed, 2 Nov 2022 14:42:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AD9BBE09D1; Wed, 2 Nov 2022 14:42:55 +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 96916E09D1 for ; Wed, 2 Nov 2022 14:42:55 +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 BD565340FEA for ; Wed, 2 Nov 2022 14:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E60CC6F8 for ; Wed, 2 Nov 2022 14:42:51 +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: <1667398027.c94eeb89027d18ddcb3891d4f81fd342da4b3a61.concord@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/xdg.if X-VCS-Directories: policy/modules/system/ X-VCS-Committer: concord X-VCS-Committer-Name: Kenton Groombridge X-VCS-Revision: c94eeb89027d18ddcb3891d4f81fd342da4b3a61 X-VCS-Branch: master Date: Wed, 2 Nov 2022 14:42:51 +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: 8dd7c3c3-2917-4120-90b7-3b95c98c3fe0 X-Archives-Hash: f4c72f3b189b1dfa93df9fad171097bf commit: c94eeb89027d18ddcb3891d4f81fd342da4b3a61 Author: Kenton Groombridge concord sh> AuthorDate: Sat Sep 24 17:23:53 2022 +0000 Commit: Kenton Groombridge gentoo org> CommitDate: Wed Nov 2 14:07:07 2022 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=c94eeb89 xdg: add interface to dontaudit searching xdg data dirs Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Kenton Groombridge gentoo.org> policy/modules/system/xdg.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/system/xdg.if b/policy/modules/system/xdg.if index 6e1cd836c..62edcd84d 100644 --- a/policy/modules/system/xdg.if +++ b/policy/modules/system/xdg.if @@ -653,6 +653,25 @@ interface(`xdg_search_data_dirs',` allow $1 xdg_data_t:dir search_dir_perms; ') +######################################## +## +## Do not audit attempts to search through the +## xdg data home directories. +## +## +## +## Domain to not audit. +## +## +# +interface(`xdg_dontaudit_search_data_dirs',` + gen_require(` + type xdg_data_t; + ') + + dontaudit $1 xdg_data_t:dir search_dir_perms; +') + ######################################## ## ## Watch the xdg data home directories