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 B7222158086 for ; Sun, 21 Nov 2021 19:33:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 128B1E085B; Sun, 21 Nov 2021 19:33:52 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8CC6E085B for ; Sun, 21 Nov 2021 19:33:51 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 187BB343236 for ; Sun, 21 Nov 2021 19:33:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AC09B1B3 for ; Sun, 21 Nov 2021 19:33:49 +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: <1637522473.0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/kernel/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/kernel/corecommands.if X-VCS-Directories: policy/modules/kernel/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec X-VCS-Branch: master Date: Sun, 21 Nov 2021 19:33:49 +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: f77452ec-7c94-47a2-bf52-a2277afe48ba X-Archives-Hash: 10c6278f198a04c088fc85a554ff81c0 commit: 0d8e0e0ca09e015b84f3bcfd371d0f3ba3818eec Author: Jonathan Davies protonmail com> AuthorDate: Sun Nov 21 09:39:33 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 21 19:21:13 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=0d8e0e0c corecommands.if: Added corecmd_manage_bin_symlinks(). Signed-off-by: Jonathan Davies protonmail.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/kernel/corecommands.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/kernel/corecommands.if b/policy/modules/kernel/corecommands.if index b20809ef..e5633704 100644 --- a/policy/modules/kernel/corecommands.if +++ b/policy/modules/kernel/corecommands.if @@ -333,6 +333,25 @@ interface(`corecmd_manage_bin_files',` manage_files_pattern($1, bin_t, bin_t) ') +######################################## +## +## Manage symlinks for bin files. +## +## +## +## Domain allowed access. +## +## +# +interface(`corecmd_manage_bin_symlinks',` + gen_require(` + type bin_t; + ') + + corecmd_search_bin($1) + manage_lnk_files_pattern($1, bin_t, bin_t) +') + ######################################## ## ## Relabel to and from the bin type.