From patchwork Thu Dec 3 14:45:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenwen Fu X-Patchwork-Id: 107214 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.15356.1796309140652906546 for ; Thu, 03 Dec 2026 06:45:40 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@qualcomm.com header.s=qcppdkim1 header.b=iYvvEwr/; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: qualcomm.com, ip: 205.220.168.131, mailfrom: wenwfu@qualcomm.com) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3EYRYl2460721 for ; Thu, 3 Dec 2026 14:45:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=Sz0+nG7k5NfnAW14rdMX2SYIFpu8KbUZFC2 fKXNzIto=; b=iYvvEwr/zK4yX9k1hzHTl3rH9vNGD88zhOrpqTGD4Zy0+mOzp0G GyTpi+/auSpOhvgbRiRrM/zsVh66xhpH2ahu8fx+Y2M8zNbNi8gmlvRJb58vrQ/N emiKpB56qi68R6EH/cc77WZ7eJrXy9HKFd+Gpa+nI1+r/7RdwY7w2cG31foTyNTF 6JCSEw91r+dZacl3xX6RiiByFH8rurNG8/E0FOizqjaACc+pHNtoi8b0s2o9SkHc U8AtkPX7+2zb/WHJJ2+0lfR9WLkwjLh7TxiXw+LxvPCrzfu4I0dbre6SKLam7OVc mdRM3bk09ru25I3bEwMXS22ArJZsShjx5gA== Received: from aptaippmta02.qualcomm.com (tpe-colo-wan-fw-bordernet.qualcomm.com [103.229.16.4]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jb3f29y0m-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 03 Dec 2026 14:45:39 +0000 (GMT) Received: from pps.filterd (aptaippmta02.qualcomm.com [127.0.0.1]) by APTAIPPMTA02.qualcomm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3Ejcav3652629; Thu, 3 Dec 2026 14:45:38 GMT Received: from wenwfu2-gv.qualcomm.com (smtphost-taiwan.qualcomm.com [10.249.136.33]) by APTAIPPMTA02.qualcomm.com (PPS) with ESMTPS id 6B3EjbQZ3652616 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 03 Dec 2026 14:45:38 +0000 (GMT) Received: by wenwfu2-gv.qualcomm.com (Postfix, from userid 3975139) id A6A8C3F2; Thu, 3 Dec 2026 22:45:37 +0800 (CST) From: Wenwen Fu To: yocto-patches@lists.yoctoproject.org Cc: Wenwen Fu Subject: [meta-selinux][PATCH] selinux-scripts: retain successful boot oneshots Date: Thu, 3 Dec 2026 22:45:35 +0800 Message-ID: <20261203144535.1513357-1-wenwfu@qti.qualcomm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Proofpoint-Reinject: loops=2 maxloops=12 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA1NyBTYWx0ZWRfX+oAgy3b5PV6J S1k6LXQdURwCrVXM+82OZR/iOGu2j/pJnkmqDnulo6FkUOqd+sJlp7APR2HuQciE7bS94hn+lxE TZnifmKVbVE9tTJHn4UokTnSlgs8dCnsW8FdDsgdCcno/EdOjbLq0t0RfLv35W5sYj6shx4kjvw RrTskovmfNkGMjjtmiaoMdU3ikgk9seMeCSOyoH95f1UwKz5uqJtVsSTggfdSduL3obxQqL0Wxh /o+/4kZgbVszxGurdLDpQbocmBAs7Q0W1j4zZhSIsJzy6gboB0mwZ3trDhgfI9zE0m+WA6JP4I/ E1M7663Qfp2ZnHjXb0DnS2gELQSb320uLOmi4jYSmI+m0AHxICoiCJpSIMES6wS6xMUWLf9A3tp LbC96oYFN8v1UVdIeueUsn8PeHiWmZChv7JHo07o9CZ87rGHyeBstOrVgQ0/Gs70xIy9pjMItRj JbfpmC6Lf8N5AXITSzQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA1NyBTYWx0ZWRfX7FGbLBYRweqP O8IVbgKnpy9pa5+oKEFIlipkQiVSdqU2K6QJQHZ0Txs1/hRN2Fn8srS6eKctR38BHk5UNXinXPZ 01M7acTefAYXasfyYcqlVKz/M9Asq/4= X-Proofpoint-ORIG-GUID: NmsO0z11bqaa47WimPztBCw3h3m6Ohlk X-Proofpoint-GUID: NmsO0z11bqaa47WimPztBCw3h3m6Ohlk X-Authority-Analysis: v=2.4 cv=QYPzLcbv c=1 sm=1 tr=0 ts=6b118093 cx=c_pps a=nuhDOHQX5FNHPW3J6Bj6AA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=mz6wIq89XR6VEcQxQiwA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_03,2026-12-03_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 clxscore=1015 impostorscore=0 malwarescore=0 adultscore=0 bulkscore=0 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030057 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 14:45:46 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5660 The selinux-autorelabel and selinux-labeldev services are boot-time oneshots wanted by sysinit.target. Without RemainAfterExit, they return to inactive after a successful run. If sysinit.target is still pending, a later start transaction requiring it can enqueue these dependencies again, rerunning work already completed during the same boot. Repeated starts can hit the service start limit even when the scripts exit with zero. Set RemainAfterExit=yes for both services so successful completion is kept as active (exited), preventing later start requests from rerunning the scripts. Explicit restarts still run them again. Assisted-by: Codex:GPT-6 Signed-off-by: Wenwen Fu --- .../selinux-autorelabel/selinux-autorelabel.service | 1 + .../selinux-scripts/selinux-labeldev/selinux-labeldev.service | 1 + 2 files changed, 2 insertions(+) diff --git a/recipes-security/selinux-scripts/selinux-autorelabel/selinux-autorelabel.service b/recipes-security/selinux-scripts/selinux-autorelabel/selinux-autorelabel.service index 3c2a576..54dd844 100644 --- a/recipes-security/selinux-scripts/selinux-autorelabel/selinux-autorelabel.service +++ b/recipes-security/selinux-scripts/selinux-autorelabel/selinux-autorelabel.service @@ -5,6 +5,7 @@ Before=sysinit.target [Service] Type=oneshot +RemainAfterExit=yes ExecStart=/usr/bin/selinux-autorelabel.sh [Install] diff --git a/recipes-security/selinux-scripts/selinux-labeldev/selinux-labeldev.service b/recipes-security/selinux-scripts/selinux-labeldev/selinux-labeldev.service index 96142a3..3f061ad 100644 --- a/recipes-security/selinux-scripts/selinux-labeldev/selinux-labeldev.service +++ b/recipes-security/selinux-scripts/selinux-labeldev/selinux-labeldev.service @@ -5,6 +5,7 @@ Before=sysinit.target [Service] Type=oneshot +RemainAfterExit=yes ExecStart=/usr/bin/selinux-labeldev.sh [Install]