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 BF691158086 for ; Thu, 11 Nov 2021 21:27:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2149F2BC164; Thu, 11 Nov 2021 21:27:42 +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 00DC12BC163 for ; Thu, 11 Nov 2021 21:27:41 +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 32EBC3430F8 for ; Thu, 11 Nov 2021 21:27:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DD42E1DC for ; Thu, 11 Nov 2021 21:27:36 +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: <1636666010.d9d9625aac1689fb43498015b6ac36274ad21912.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/ssh.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: d9d9625aac1689fb43498015b6ac36274ad21912 X-VCS-Branch: master Date: Thu, 11 Nov 2021 21:27:36 +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: 42bbbc4b-09e6-47f8-84a1-03e78955a77a X-Archives-Hash: 6b6ae54c0da02c73fabe7b6bcd0e18c7 commit: d9d9625aac1689fb43498015b6ac36274ad21912 Author: Kenton Groombridge concord sh> AuthorDate: Sun Nov 7 01:35:24 2021 +0000 Commit: Jason Zaman gentoo org> CommitDate: Thu Nov 11 21:26:50 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=d9d9625a ssh: fix for polyinstantiation If using polyinstantiation, sshd needs to be able to create a new tmp directory for remote users. Signed-off-by: Kenton Groombridge concord.sh> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/ssh.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/services/ssh.te b/policy/modules/services/ssh.te index e386032f..96038e49 100644 --- a/policy/modules/services/ssh.te +++ b/policy/modules/services/ssh.te @@ -289,6 +289,11 @@ tunable_policy(`ssh_sysadm_login',` userdom_signal_unpriv_users(sshd_t) ') +tunable_policy(`allow_polyinstantiation',` + allow sshd_t self:capability dac_override; + files_relabel_generic_tmp_dirs(sshd_t) +') + optional_policy(` daemontools_service_domain(sshd_t, sshd_exec_t) ')