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 C7C07138359 for ; Mon, 24 Aug 2020 12:36:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 02BB6E084E; Mon, 24 Aug 2020 12:36:50 +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 DED71E084E for ; Mon, 24 Aug 2020 12:36:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 EF94F33BED4 for ; Mon, 24 Aug 2020 12:36:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 68EF331C for ; Mon, 24 Aug 2020 12:36:47 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1598272601.fcbcf021f60f4b37927e6f6b433bc7ac57e0a72f.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/lvm2/lvm2-2.02.187-r2.ebuild sys-fs/lvm2/lvm2-2.03.10.ebuild X-VCS-Directories: sys-fs/lvm2/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: fcbcf021f60f4b37927e6f6b433bc7ac57e0a72f X-VCS-Branch: master Date: Mon, 24 Aug 2020 12:36:47 +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: f4dde9a6-0e4a-48c7-acda-2aa736de2940 X-Archives-Hash: f16bfae9a32edb5544378e5948216f65 commit: fcbcf021f60f4b37927e6f6b433bc7ac57e0a72f Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Aug 24 12:34:26 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Aug 24 12:36:41 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcbcf021 sys-fs/lvm2: try to detect and warn for problematic /run permissions Bug: https://bugs.gentoo.org/737270 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Thomas Deutschmann gentoo.org> sys-fs/lvm2/lvm2-2.02.187-r2.ebuild | 16 ++++++++++++++++ sys-fs/lvm2/lvm2-2.03.10.ebuild | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild index 8c994897df9..3111a305fc4 100644 --- a/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild +++ b/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild @@ -271,6 +271,22 @@ pkg_postinst() { ewarn ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want" ewarn "to enable lvm autoactivation and metadata caching." + + if use udev && [[ -d /run ]] ; then + local permission_run_expected="drwxr-xr-x" + local permission_run=$(stat -c "%A" /run) + if [[ "${permission_run}" != "${permission_run_expected}" ]] ; then + ewarn "Found the following problematic permissions:" + ewarn "" + ewarn " ${permission_run} /run" + ewarn "" + ewarn "Expected:" + ewarn "" + ewarn " ${permission_run_expected} /run" + ewarn "" + ewarn "This is known to be causing problems for UDEV-enabled LVM services." + fi + fi } src_test() { diff --git a/sys-fs/lvm2/lvm2-2.03.10.ebuild b/sys-fs/lvm2/lvm2-2.03.10.ebuild index 40418f6bae3..66bf4be80bc 100644 --- a/sys-fs/lvm2/lvm2-2.03.10.ebuild +++ b/sys-fs/lvm2/lvm2-2.03.10.ebuild @@ -255,6 +255,22 @@ src_install() { pkg_postinst() { ewarn "Make sure the \"lvm\" init script is in the runlevels:" ewarn "# rc-update add lvm boot" + + if use udev && [[ -d /run ]] ; then + local permission_run_expected="drwxr-xr-x" + local permission_run=$(stat -c "%A" /run) + if [[ "${permission_run}" != "${permission_run_expected}" ]] ; then + ewarn "Found the following problematic permissions:" + ewarn "" + ewarn " ${permission_run} /run" + ewarn "" + ewarn "Expected:" + ewarn "" + ewarn " ${permission_run_expected} /run" + ewarn "" + ewarn "This is known to be causing problems for UDEV-enabled LVM services." + fi + fi } src_test() {