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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 486CF1382C5 for ; Mon, 18 May 2020 05:00:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E341E0929; Mon, 18 May 2020 05:00:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8502E0924 for ; Mon, 18 May 2020 05:00:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3821034ED5E for ; Mon, 18 May 2020 05:00:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D23AD18F for ; Mon, 18 May 2020 05:00:41 +0000 (UTC) From: "Jason A. Donenfeld" 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 A. Donenfeld" Message-ID: <1589777991.911b35667b9e66b5d29f0ef2927219cacabd2e30.zx2c4@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/tpm2-tss/, app-crypt/tpm2-tss/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/tpm2-tss/files/tpm2-tss-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild X-VCS-Directories: app-crypt/tpm2-tss/files/ app-crypt/tpm2-tss/ X-VCS-Committer: zx2c4 X-VCS-Committer-Name: Jason A. Donenfeld X-VCS-Revision: 911b35667b9e66b5d29f0ef2927219cacabd2e30 X-VCS-Branch: master Date: Mon, 18 May 2020 05:00:41 +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: 940c0830-0566-4145-9a02-85b16b698928 X-Archives-Hash: 0e4b9ab66d0d01a3ad3496f5c3dcc3eb commit: 911b35667b9e66b5d29f0ef2927219cacabd2e30 Author: Salah Coronya gmail com> AuthorDate: Thu May 14 03:12:06 2020 +0000 Commit: Jason A. Donenfeld gentoo org> CommitDate: Mon May 18 04:59:51 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=911b3566 app-crypt/tpm2-tss: Fix sandbox violation for systemd users Closes: https://bugs.gentoo.org/722864 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Salah Coronya gmail.com> Signed-off-by: Jason A. Donenfeld gentoo.org> ...-tss-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch | 15 +++++++++++++++ app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild | 5 +++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app-crypt/tpm2-tss/files/tpm2-tss-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch b/app-crypt/tpm2-tss/files/tpm2-tss-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch new file mode 100644 index 00000000000..c916bbf0133 --- /dev/null +++ b/app-crypt/tpm2-tss/files/tpm2-tss-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile.am b/Makefile.am +index c543a287..58187f7e 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -558,10 +558,6 @@ uninstall-local: + -rm $(DESTDIR)$(udevrulesdir)/$(udevrulesprefix)tpm-udev.rules + endif + +-# Create tss user and FAPI directories directly after installation (vs. after a reboot) +-install-exec-hook: +- systemd-sysusers && systemd-tmpfiles --create || true +- + uninstall-hook: + cd $(DESTDIR)$(man3dir) && \ + [ -L Tss2_TctiLdr_Initialize_Ex.3 ] && \ diff --git a/app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild b/app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild index f8986d88dc9..76c8cc9bf6d 100644 --- a/app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild +++ b/app-crypt/tpm2-tss/tpm2-tss-2.4.0.ebuild @@ -34,7 +34,8 @@ BDEPEND="virtual/pkgconfig PATCHES=( "${FILESDIR}/${PN}-2.4.0-fix-tmpfiles-path.patch" -) + "${FILESDIR}/${PN}-2.4.0-Dont-run-systemd-sysusers-in-Makefile.patch" + ) pkg_setup() { local CONFIG_CHECK=" \ @@ -57,7 +58,7 @@ src_configure() { --with-runstatedir=/run \ --with-udevrulesdir="$(get_udevdir)/rules.d" \ --with-udevrulesprefix=60- \ - --with-sysusersdir="/usr/lib/sysusers.d" + --with-sysusersdir="/usr/lib/sysusers.d" \ --with-tmpfilesdir="/usr/lib/tmpfiles.d" }