From patchwork Thu Mar 20 18:10:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Eatmon X-Patchwork-Id: 59660 X-Patchwork-Delegate: reatmon@ti.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2915C36012 for ; Thu, 20 Mar 2025 18:10:53 +0000 (UTC) Received: from fllvem-ot04.ext.ti.com (fllvem-ot04.ext.ti.com [198.47.19.246]) by mx.groups.io with SMTP id smtpd.web10.1859.1742494250886333863 for ; Thu, 20 Mar 2025 11:10:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vUK8hQZV; spf=pass (domain: ti.com, ip: 198.47.19.246, mailfrom: reatmon@ti.com) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllvem-ot04.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52KIAnAu703254 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Mar 2025 13:10:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1742494249; bh=Hhb8ChYRIFyRljjGD6q25XjYEVkbWyXBynBtrdrpt/c=; h=From:To:Subject:Date:In-Reply-To:References; b=vUK8hQZVkzfZS5TdSSrBmFtLRsh2g0RjE0Ykz8XL4/R4YE0gIr23f1n2GhLN9FEeZ bOkQ0Btl5pWpJ8gutnQTH+bRiljGGSTh+RlpB/F2mm3Ejbxy6fKVODPbA/OAAcnaoQ sOUHdtJJ3Y1VaLj5uVxGCknYMRtkjYKjEkIxU62o= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 52KIAnWr020266 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 20 Mar 2025 13:10:49 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 20 Mar 2025 13:10:48 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 20 Mar 2025 13:10:48 -0500 Received: from uda0214219 (uda0214219.dhcp.ti.com [128.247.81.222]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52KIAmLV085692; Thu, 20 Mar 2025 13:10:48 -0500 Received: from reatmon by uda0214219 with local (Exim 4.90_1) (envelope-from ) id 1tvKLw-0000kI-Oc; Thu, 20 Mar 2025 13:10:48 -0500 From: Ryan Eatmon To: Praneeth Bajjuri , Denys Dmytriyenko , Subject: [meta-arago][master][PATCH 13/26] shadow-securetty: Wrap the bbappend in a compliant manner Date: Thu, 20 Mar 2025 13:10:34 -0500 Message-ID: <20250320181047.18035-14-reatmon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20250320181047.18035-1-reatmon@ti.com> References: <20250320181047.18035-1-reatmon@ti.com> MIME-Version: 1.0 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 20 Mar 2025 18:10:53 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/meta-arago/message/16121 Wrap the bbappend in a yocto-check-layer compliant manner so that only if you are building this recipe under meta-arago-distro with the arago DISTRO_OVERRIDE would the bbappend apply. Signed-off-by: Ryan Eatmon --- ...ty_%.bbappend => shadow-securetty-arago.inc} | 0 .../shadow/shadow-securetty_%.bbappend | 17 +++-------------- 2 files changed, 3 insertions(+), 14 deletions(-) copy meta-arago-distro/recipes-extended/shadow/{shadow-securetty_%.bbappend => shadow-securetty-arago.inc} (100%) diff --git a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend b/meta-arago-distro/recipes-extended/shadow/shadow-securetty-arago.inc similarity index 100% copy from meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend copy to meta-arago-distro/recipes-extended/shadow/shadow-securetty-arago.inc diff --git a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend index 62999d2a..eea8f292 100644 --- a/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend +++ b/meta-arago-distro/recipes-extended/shadow/shadow-securetty_%.bbappend @@ -1,15 +1,4 @@ -PR:append = ".arago0" +SHADOW_SECURETTY_ARAGO = "" +SHADOW_SECURETTY_ARAGO:arago = "shadow-securetty-arago.inc" -do_install:append () { - # Allow telnet sessions to login as root - securetty_file=${D}${sysconfdir}/securetty - - echo '' >> $securetty_file - echo '# Allow 5 telnet login' >> $securetty_file - echo 'pts/0' >> $securetty_file - echo 'pts/1' >> $securetty_file - echo 'pts/2' >> $securetty_file - echo 'pts/3' >> $securetty_file - echo 'pts/4' >> $securetty_file - -} +require ${SHADOW_SECURETTY_ARAGO}