From nobody Wed Oct 30 19:55:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1675768113; cv=none; d=zohomail.com; s=zohoarc; b=VrULhgy5GzZt2VKEvMp/1Mxdg+uD4b8DNS8KJCdl41NKHseeEnvyX38fW9zbHssrVP0P2pZP+gf15jg7qUxMEM0etjH5eM6WlskX52B74ptGgYdXqH3urM15ZUGnAvyAf6Y8eZYNqTKqFTWqy5nKGd0jjRloJq20KM62Avf5jn8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675768113; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=mMrPC/cXaxRzHhdH7EHPvsD2qSRu6FmzRKvmiqd8ZTM=; b=oFrZp9eLdAusO36bTCKkSJmRpSi/qj3Obv8y+obaG86p40XaJ2BSs1F5+hUsQ71muySApKpXsxpJ5Nga5HANXd/FKkNoCzndeTjRuwmjyUaTv1gp9S5tGSq/MqGYIMpaQj5eS0y8p7LuvvugcG6izIkYavK0qSqPtpu80G3xqko= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1675768113974144.6957255381053; Tue, 7 Feb 2023 03:08:33 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-646-Fjo9xLdfPayU5XR--6FW5Q-1; Tue, 07 Feb 2023 06:08:29 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0A38638060E1; Tue, 7 Feb 2023 11:08:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 022C61121315; Tue, 7 Feb 2023 11:08:28 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B679C194658C; Tue, 7 Feb 2023 11:08:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 44FE71946589 for ; Tue, 7 Feb 2023 11:08:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A856E492C3F; Tue, 7 Feb 2023 11:08:26 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast07.extmail.prod.ext.rdu2.redhat.com [10.11.55.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A0EC3492C3C for ; Tue, 7 Feb 2023 11:08:26 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 85F6F3C0252A for ; Tue, 7 Feb 2023 11:08:26 +0000 (UTC) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-608-nfhZgq3ZMXyFTkcMSEH6yw-1; Tue, 07 Feb 2023 06:08:25 -0500 Received: by mail-ej1-f69.google.com with SMTP id z2-20020a1709060be200b0088b579825f9so10866148ejg.18 for ; Tue, 07 Feb 2023 03:08:25 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id g8-20020a170906348800b0073d796a1043sm6593387ejb.123.2023.02.07.03.08.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 03:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675768113; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=mMrPC/cXaxRzHhdH7EHPvsD2qSRu6FmzRKvmiqd8ZTM=; b=Fge+b6ZjCGOGImxmpYd3H3YuO533659i04lnukuxpBhAvPK6kSVyibDg7gNOO5JV9DanQ6 XFE7lFwyOJU5XyS6eC213Wryn2hULFW47MwMUZL9N6UsZS34DKGSdEnF3PbFwILeueV1Da dzfycCwIXVRvhTn8te6HnaLWdqWP/Wk= X-MC-Unique: Fjo9xLdfPayU5XR--6FW5Q-1 X-Original-To: patchew-devel@listman.corp.redhat.com X-MC-Unique: nfhZgq3ZMXyFTkcMSEH6yw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dpwlFmrRPvgieG/pBrkp/YMW/EuKNZwtfsFNDDDb8F8=; b=3+iqhd3kUXLRBr37IQBgpQnIjsozx2zky+0lou3M/M9RHEFN8HHCevwwaKP6wjHuwu VBusUTYhJgmPKuYJ3e7kMNiSFeBt0mcFOVQVZGc2cc0FSvV3a43fDmZHbtNg/L/0EAdB j5EZElWeIjrvl/EcRzQCaeUMIiklBftmzIK/U08XeVirce5jRNXlvX5iiNSG69cbaY88 yBd8Qw2EI+TcnM2zi8EOQ0L7hDFAEiDS2NuovGlG+amiJM6qOlXEm0G/T8RLSWbzuP3j tfTbyCbKKiDYD7dnIPMWFpiMKx5easmF8V/ZSjkRD5B397anEEGffnkg+dt84hTi9Jjr Ll0g== X-Gm-Message-State: AO0yUKVqHNgAyoJJ9SvStjt1pgYMsVcD52Gmf9/hlBhaPfld/egDwA3a KIZE59a3wH/0pQzdVVMric6OvcmpBBZNfzbk5mXo+YYg8m6/HmSmL2XcuyQH7zqRutVepjfZ5u0 xchyNk1guL51UVayDimrj4ndhvwv2Z/F6hKpdpACUVArrrmJZu4aphiTQRdjtM20ljzoCLygBWD xddVA= X-Received: by 2002:a17:906:a006:b0:88c:7a36:d11e with SMTP id p6-20020a170906a00600b0088c7a36d11emr2903209ejy.25.1675768103792; Tue, 07 Feb 2023 03:08:23 -0800 (PST) X-Google-Smtp-Source: AK7set8bgOFkkFZaFMTtcPnzWXzngkhOkAsc/A8QfmXVvMce6DqRp7cfI5/gGMOyEZA0OCRnybNeXA== X-Received: by 2002:a17:906:a006:b0:88c:7a36:d11e with SMTP id p6-20020a170906a00600b0088c7a36d11emr2903187ejy.25.1675768103480; Tue, 07 Feb 2023 03:08:23 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Tue, 7 Feb 2023 12:08:20 +0100 Message-Id: <20230207110821.64290-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 Subject: [Patchew-devel] [PATCH] playbooks: apply SELinux context to nginx.sock X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchew-devel-bounces@redhat.com Sender: "Patchew-devel" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1675768115699100001 Content-Type: text/plain; charset="utf-8" --- scripts/playbooks/deploy-servers.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/playbooks/deploy-servers.yml b/scripts/playbooks/deplo= y-servers.yml index 6b81f9a..2a24cab 100644 --- a/scripts/playbooks/deploy-servers.yml +++ b/scripts/playbooks/deploy-servers.yml @@ -31,6 +31,11 @@ file: path: "{{ data_dir }}" state: directory + - name: Setting SELinux context + sefcontext: + setype: httpd_var_run_t + target: "{{ data_dir }}/nginx.sock" + become: true - name: Create podman network containers.podman.podman_network: name: patchew @@ -38,6 +43,9 @@ - import_tasks: tasks/podman-deploy.yml vars: instance_role: server + - name: Apply new SELinux file context to filesystem + command: "restorecon -v {{ data_dir }}/nginx.sock" + become: true - name: Create superuser when: superuser_name !=3D "" shell: | --=20 2.38.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel