From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B765BDF46 for ; Tue, 5 Mar 2024 00:56:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709600208; cv=none; b=hflfiuIbfebcOdkTFgTYUX82tQuIkFUXU9CJKDCW97ea/OV1SALT/tNsnmZI1HSQc5ChmOIBWKjKHeQ3YoPDqLhYIzI03qitVFbUwtiXpb1zKUAgyK2vzE0XkIGz5WkmfurPmoICMfWkTUNvi3dnc+MgcUPhjlhPNpQ6aZUNVtQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709600208; c=relaxed/simple; bh=ZPZIGdHYgGxHQyctQcxs6jm6ylcMhr2amHrAosKOyx8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IL6MCUFtBN1NiVH1cbEK8RGuO6hxES2YcVu+1lxyGRRhJVA95sBKOP4SJuVEOPerYZvjJLI66+uvLX/YgenBlzIDjHk8wlA86DqhzY8kUFnlwooriC7q9Ah4sTtlLaeSeH6325x4RNqUE8/SDm2Gnd499s8JF5abOMhp4SxY3Ls= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=FIzb3gfV; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="FIzb3gfV" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=v3fU0re+uql/0WvYVKs7tYofxxD/8iACPUeg8IAndn8=; b=FIzb3gfVgIIvBRfl7aL9kwGHLt C40jPfZBJuibeslHCKCcR9+bWywn8Gn6aX5dAzjgogQ1nA7Y9k2z1W4EKhTZSUmfb/r2yMQnqoMfo 27YfgXRgWrJ6rVL37ZVkbjnHc4J/gywiKeJNs0fqKfHXDjK3RxbVILIfYtPKsfJoHYunlzxtsPCwY T2V24pVd4i0aijRk0t6bqjV8rjbOVZmzSAKxK/SLEn2OjhdflSZ8nghxcMJRxcHGx4xlYpiiSuGRI LIeUDR8xZou0oUfVCeMX8cS0uRKHYIE5FfAiUxQyN0OU1FewMADGSziukLX+yYtbXYpEuS5RroKLX F7yPxorg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhJ6s-0000000BJdi-10kA; Tue, 05 Mar 2024 00:56:46 +0000 From: Luis Chamberlain To: kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 2/3] scripts/bringup_guestfs.sh: allow libvirt user to modify extra disks Date: Mon, 4 Mar 2024 16:56:43 -0800 Message-ID: <20240305005645.2697081-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240305005645.2697081-1-mcgrof@kernel.org> References: <20240305005645.2697081-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain When a system session is used libvirt runs as a privileged user, not the user, and so the user needs to be able to modify the user's files. The directory already should have the correct permissions, but no the files. Fix those. This let's us start guestfs guests on debian. Signed-off-by: Luis Chamberlain --- scripts/bringup_guestfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bringup_guestfs.sh b/scripts/bringup_guestfs.sh index 19e636fc64f3..58e5e3d2a018 100755 --- a/scripts/bringup_guestfs.sh +++ b/scripts/bringup_guestfs.sh @@ -114,6 +114,9 @@ do diskimg="$STORAGEDIR/$name/extra${i}.${IMG_FMT}" rm -f $diskimg qemu-img create -f $IMG_FMT "$STORAGEDIR/$name/extra${i}.$IMG_FMT" 100G + if [[ "$CONFIG_LIBVIRT_URI_SYSTEM" == "y" ]]; then + chmod g+rw $STORAGEDIR/$name/extra${i}.$IMG_FMT + fi done virsh define $GUESTFSDIR/$name/$name.xml -- 2.43.0