From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7261955842613706752 X-Received: by 2002:a2e:98c9:0:b0:2b6:cca1:9760 with SMTP id s9-20020a2e98c9000000b002b6cca19760mr5559448ljj.27.1690805853941; Mon, 31 Jul 2023 05:17:33 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:1a0e:b0:2b8:9e87:1440 with SMTP id by14-20020a05651c1a0e00b002b89e871440ls1353293ljb.0.-pod-prod-02-eu; Mon, 31 Jul 2023 05:17:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlHC2OmgeV6VNpQ6A9oR1mxAk+pgDgEOcl6EEjL/XkVUizc36YEy43EhrTg5F49WjlWjD04N X-Received: by 2002:a05:651c:8b:b0:2b9:c644:414a with SMTP id 11-20020a05651c008b00b002b9c644414amr5853914ljq.46.1690805851849; Mon, 31 Jul 2023 05:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690805851; cv=none; d=google.com; s=arc-20160816; b=I9LRe0Sr4jYeURGLAC/Xkk4nNXeM7CB2GBNGWIqBuJ76qdjAxwfSGoPvOJd+tQBEBB XOX+8GOPq+XfmXagyZJyj45aYpDSuYhsgFRrG3Ro1x+/XPztsJdXffo8lz7mYyYUzkxd aeU83vOBFfrOKAlkp5tZlTDj/SmSZQzHlbOzU9IvjgXLbUmy0Fn8AdfNS8r7ySOCcrOq xejW7d/1mmGepg1VUGfxdu7abRVrVY2QJ+YJ2BIBSOSmaH1RPfkXVREoVCxSao6V0QnD Vrmkxtl5Ezf4tcJngNeLB8Wx5kE/FCedunysmm0njNKSTzqO615hW/No1fg3IGnyzbVi JDuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=ydZBigzt+P0PPHZSNYIMXjfzEYROwrfs27kRT3FW5X0=; fh=swRs1+OhWjovx1IrvOlKBWsdq9manB5qdcuGoHoh5Ak=; b=bG7QCa7mp/FK9zhMNTnykdk86qAvfelOiNCE/Z6bN2A67dE8W7NpmK2LR9SgHmMTE6 qYbzCnA6+Fak9BeOxJB9a0nB9QGVH89UUmLl3iOvTQU94zE9cLzVg7yAsNRXjlqCkLS0 6xCw+maGLBtdZGdXjYOXxsH0v++TKqED6PvkbSdmVkrKUfEyMgZo08SuDy7pOgDLBU2O yXCkc0Qbxm4TW58M32ufW31cG+m1vO2VhbKEI7KQ4yI5y6zl2rInBD7DTNZOGGMLnRAk Vd4QE1m4xlaQgxNC8w8G9wwYBcTbyjdlPj5EjgyazyUyLq3KoUP6QSDpXx90hQewiE0g XVJQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a14-20020a2e980e000000b002b945894b21si684635ljj.6.2023.07.31.05.17.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Jul 2023 05:17:31 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 36VCHTOX015705 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 31 Jul 2023 14:17:30 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v4 02/11] optee-client: Unbind ftpm, rather than remove its driver Date: Mon, 31 Jul 2023 14:17:20 +0200 Message-Id: <20230731121729.16972-3-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230731121729.16972-1-ubely@ilbers.de> References: <20230731121729.16972-1-ubely@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: fgK2qenj6dXA From: Jan Kiszka This allows to support also scenarios where the driver is built into the kernel. And it also resolves an escaping issue in the old version. Signed-off-by: Jan Kiszka --- .../optee-client/files/debian/tee-supplicant.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-bsp/optee-client/files/debian/tee-supplicant.service b/meta/recipes-bsp/optee-client/files/debian/tee-supplicant.service index 4508a142..cc92a5fd 100644 --- a/meta/recipes-bsp/optee-client/files/debian/tee-supplicant.service +++ b/meta/recipes-bsp/optee-client/files/debian/tee-supplicant.service @@ -14,7 +14,7 @@ RemainAfterExit=yes # Start if not already started by the initramfs hook ExecStart=/bin/sh -c '/usr/bin/pgrep tee-supplicant >/dev/null || /usr/sbin/tee-supplicant -d' ExecStop=/bin/sh -c '/usr/bin/findmnt /sys/firmware/efi/efivars >/dev/null && /usr/bin/umount /sys/firmware/efi/efivars || true' -ExecStop=/bin/sh -c '/usr/sbin/modinfo -n tpm_ftpm_tee | /usr/bin/grep -E "\.ko$" >/dev/null && /usr/sbin/modprobe -r tpm_ftpm_tee || true' +ExecStop=/bin/sh -c 'echo -n optee-ta-bc50d971-d4c9-42c4-82cb-343fb7f37896 > /sys/bus/tee/drivers/optee-ftpm/unbind || true' ExecStop=/usr/bin/pkill tee-supplicant [Install] -- 2.20.1