From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D508C288C8A for ; Mon, 14 Apr 2025 17:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744650350; cv=none; b=eA+OKbiY/L1nAXFgKgNNAZHV/Fwei4Xx6RitWQYdB15R2gzA7AtTaIq71q28HeOXUdzaNuMTxOtBEytoyNkU5/ECNCqMzh/Co0nUQ8gzf6Q7FsVGIxI4ma11NLeYpSeTJogmcjZK3NbAQMkwYqdjurs/QTAFBcV0ydy+VzKsl1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744650350; c=relaxed/simple; bh=L3ss6lIX5uGoUGpHGTH5chOM7O33La/7x7x4pfTg1eg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OzDrH2Syz6zdnwGjvBQiqKwcQ768bJEA9vAai+NjeozlR733c4xBG1drhc6lXCBRuMN21ydI7ckCN587yaDjyU5TbaZCmXMj/JOyTUYA6EDnMcx8Sm47C36zevi/C69YaFI31jTfsolIEYDNY+KyHWTqkHDGrSpy0Snpdx8eAlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KaYgr3jc; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KaYgr3jc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71FB4C4CEE2; Mon, 14 Apr 2025 17:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744650350; bh=L3ss6lIX5uGoUGpHGTH5chOM7O33La/7x7x4pfTg1eg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KaYgr3jcwtRxp/ObyFvNkjjGG9p2XwsUH+m8dde+tNRoiw6uTZ5KudDyyswjJmleC 9J2gEpGKe66HjdsFKZnCC+9mQ85TlKTbEZ4seYSyP0HVJbpzUhfoULFEmSnqko3FgW RgPmlK4PV3WUV4pnMlcAjfbaOQiMLolABm9yhrBq7ip3rAC7Kd4Uh3ufrMANvdIU3f lfFUDORFay9jGrjoibHo94+JU63h7T0xiw24fFvt0hAJIWSvQr3btd+Dx1f893iDKV Q+0pvjX3jeXNukwkTFni+0QabsHggOgxYyw/2W7ODwhbBiEoOqb4XOD5KKDSaHBhA8 72B+hiMWXGrAg== From: cel@kernel.org To: Cc: Chuck Lever Subject: [PATCH v2 3/4] Replace STORAGE_POOL_PATH with LIBVIRT_STORAGE_POOL_PATH Date: Mon, 14 Apr 2025 13:05:45 -0400 Message-ID: <20250414170546.1995982-4-cel@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250414170546.1995982-1-cel@kernel.org> References: <20250414170546.1995982-1-cel@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 From: Chuck Lever Clean up. Signed-off-by: Chuck Lever --- kconfigs/Kconfig.guestfs | 5 ----- .../roles/libvirt_user/tasks/enable-user/redhat/main.yml | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/kconfigs/Kconfig.guestfs b/kconfigs/Kconfig.guestfs index 460ee703fd68..a2fddd691be9 100644 --- a/kconfigs/Kconfig.guestfs +++ b/kconfigs/Kconfig.guestfs @@ -1,10 +1,5 @@ if GUESTFS -config STORAGE_POOL_PATH - string - output yaml - default LIBVIRT_STORAGE_POOL_PATH - config GUESTFS_STORAGE_DIR string output yaml diff --git a/playbooks/roles/libvirt_user/tasks/enable-user/redhat/main.yml b/playbooks/roles/libvirt_user/tasks/enable-user/redhat/main.yml index 1a18c4b4f29f..717d8ef68569 100644 --- a/playbooks/roles/libvirt_user/tasks/enable-user/redhat/main.yml +++ b/playbooks/roles/libvirt_user/tasks/enable-user/redhat/main.yml @@ -35,16 +35,16 @@ when: - only_verify_user|bool -- name: Test SELinux context of {{ storage_pool_path }} - command: "/usr/bin/stat -c %C {{ storage_pool_path }}" +- name: Test SELinux context of {{ libvirt_storage_pool_path }} + command: "/usr/bin/stat -c %C {{ libvirt_storage_pool_path }}" register: storage_pool_path_ctx when: - only_verify_user|bool -- name: Set SELinux context on {{ storage_pool_path }} +- name: Set SELinux context on {{ libvirt_storage_pool_path }} become: yes community.general.sefcontext: - target: "{{ storage_pool_path }}(/.*)?" + target: "{{ libvirt_storage_pool_path }}(/.*)?" setype: svirt_home_t state: present when: -- 2.49.0