From patchwork Tue Dec 10 13:12:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Zhao X-Patchwork-Id: 53879 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 710F9E77180 for ; Tue, 10 Dec 2024 13:13:29 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.9946.1733836399732241053 for ; Tue, 10 Dec 2024 05:13:19 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=20745f6cf3=yi.zhao@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BA6KQCo008981; Tue, 10 Dec 2024 05:13:18 -0800 Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2044.outbound.protection.outlook.com [104.47.73.44]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 43cwy1trsf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Dec 2024 05:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nh+o1IZ0dpysqRy62Pn3wT27v8d+WV9uTlurU5pZFGcegc9Zj/+nY77YJH16D/sDwNQUXZxYpB1gVig9eaKl67s/eKclOQ7ihyO9nPmXYVhfkZhUbG98MCxOUCHtuAuWkN9Dk5ZfbnTBtmtyDOqmjV3TJs/8e92DRsGJf8TdRsu8nkBcw7rNViZGRp+BSNTOdl/w03AqShfUtsbsJUZqbW0DfTsTO0YNY1c/nAZJhGSVl8a+PKk2eofrQZBwwCboMX5TbFPQJfY8puU8cbP4VODoeJDYmejNCCTHXhh4udNrnQ9RJMbkLpEsi5g+RnNNn6i4a94NzQtOsI0fIRQ59A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Tx7JQRy/QKCJobl0W+mlfF5OVIwBzBwWOIymEwoPOE8=; b=Gyj/aUNwcwm++Or0tKUzLZh5OiTtiiPDb30qj+SHtcIGBMZFbPRpuAFUOKSqJHnmdDdnPOrr9KCvx7R0/UnwSDYpHRyXZ0Z1TFI2NF0B1SyWHOD04QjQML3WsNmLWJZXIn1nyH+3bOpu5bktXxK5hgydiWbhzhG/SdXWgtrSsWkw3m3dZM/C7WMlAgx12XZ8InpZrqdk+m/BEZ4Z6sq+gbG0qvqYKoX5s+Y3r7bvjcUS6IMKUehSx1u8romK5ufp/c6IfP+JMFENiP449CPSolZazoMVz8kPFiv3Zc6qS/m6xwXVPOJumYETdPPXSEncQAElFeS85qIr+OiRUjWN4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) by PH0PR11MB7586.namprd11.prod.outlook.com (2603:10b6:510:26e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.14; Tue, 10 Dec 2024 13:13:15 +0000 Received: from DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad]) by DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad%7]) with mapi id 15.20.8207.017; Tue, 10 Dec 2024 13:13:14 +0000 From: Yi Zhao To: yocto-patches@lists.yoctoproject.org, joe@deserted.net, joe.macdonald@siemens.com Subject: [meta-selinux][PATCH 1/4] libpam: drop packageconfig for selinux Date: Tue, 10 Dec 2024 21:12:53 +0800 Message-Id: <20241210131256.2393366-1-yi.zhao@windriver.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: SGXP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::18) To DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB6399:EE_|PH0PR11MB7586:EE_ X-MS-Office365-Filtering-Correlation-Id: 3fb214d3-c686-4c25-12cf-08dd191c678d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 8gLv38lnNqgdCtjzOBESk6V2qoP4/aXr3qVVT3hBUiEFVz2YiNEFSRFr3pHMWLjdVGxYgKKHlQoxb4zFYmZVAtVq1mu3I6vRRxxa0rRVujA4K3VrdTBYmhiALt8S0AYz9il/fS+HcgD3Cc2rQOUIqmynRfTY9TCj7eDYWitaUz1IIvbG+YwtUGRaKgFrsdtzKe0Ue7IAo33FRZkiQqQzsELWkN/lclOAF1c1YVqKjK7+hcj0UYfjRZhuKdK3EZDCdljoQ6HIT/iUnQA28m899iJihQLcpnSz/btKu2gjvbeGFnUpaMCCEy0m5iATQTF0TrS63myanucb9jeHYZUkE4y3Z8jcV4dViUukx57+RxQ0IMvGyDb7gM6bSfgqGdqYryWcioITR/kJ00/YSkHgOIRtyo7yh8H7jP1hIGI7tAni6Dhy4oWu9L5n6h+vNnIqM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;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F61Q20P+LYNnbfDfKEpIsS8BZaZOnKDo96UsaMnhWiN6epC3ay9Pwl8b990/3QY4a2OaTAzUwJzvcbmIfqHW6GoD+P1IqiWb8TMxP3w+HLHn9B2MCCH1PQfV34oNnabDBkY2vn7Eqz2xDhBfhOuHORAhkMK7RtOFbEYC36X8pNrYSiwN8a3RWHCkP9ZeZiM3bBSqrBVOE3LpcmwgzbIHOHNhUdW8nCUEsyS9DDrWvSEHfIShwlFcHDMmULqOMSwCHSGsm4sfQkv15qT7NbHywuOTW1EOxaRDmwOTuYKCmJ9g83th/90LjpfGOcYHoAam4sT9PbjtOkrDhXrLZfIC/KAefR4W7xQvIsssAxU/y0NWhCsqsfH/fMCF8K6yPFRdZhVap+HZitWtp9ynNpJbWFKU+1afjuY764lk1YNl50nV0qdhASro1cv0YwiMjwTSczGAvF3Ndm+H4In8/ly4rMRI25orDO1xMNAEJSJTLgF5a2AJORL+FeBVxNLVVlaAJHOINR8GH3WeHmDIrgO+iBXH36a3/uEI3r+fR7KrAY1LMny8I/S03spVa6z4bA+of6hJNTkKImCWrWrMQrnQplVEUlcvpRtq4Usdk4/VqO+WsQzXMF8vWkMi/N72eCF8VRh3v5GNV/uWm8uR0tTypXGCLw5XiT7n203KfF296VUBUvTnpjZ4e7XE3chApe5hSsYpoK0VeUX/ns10TPqKr+cFscuY3qkrFUP0DfFRMRtnCQzrJPOSnyHUp4nvt3+FAlcp9g4vG70/SL6VpWE52EcPxeCm73rNWv54Q2QCVx8CrfZkYxrKhW1QnLPw/szOUKFefv6IlMKgrMQVmfsnVBv+jMExfzgyYvjzEU6PXMhP5kQmdZm6w17vmUGXDiEGNM1vrW2neRvygxPlyJLXUYTgT3UxXv6gXFawdetGZP9wMzUCGT9cv4vVcBOUDh75b1h3tRZlCO6wXd3SyxOv/Fe4IBv/dAe7U9gq7VWUIKhM6GbNUcCgkrsnr0ZsZXuYWl6KNlFVM45e2DE4X56E1hYEqZiA6JEtNK3/xY9iX15RZQePjI8lEgkkJ1y6H1NzcZ7I/Nct+zkNrq+4S1lRtKeQYhmmBrbA4+uDYg+xDMbO+sRB0blAjGGF+P4r2CF6rDPXyZz283ttYotTw82pfcxijIfSNcZ0TaA7ze6vtMrEibTu9bzMEoHidePyTxTSI0lHDKfrlCP3h3m49AsNaXkeqKRxKb6k2/7ItveKSUcdkFoDoemPwwyUsY25l3ngo7XpKpTKmFv7BzNDCByqfid+jWBO2T8UBjDCsZV3SILKuHHlfMhO+FwMVbQqmKGndostpLKgfW/CDDPhJVn9sPHNo6E1BcVrVNHdBglj1kItDNWdQ1LCF4v20v5u1GIEx5VphtKDtzaq5i3kbi+KwV75QwaKiIJ9mleMAoXuWElmxfgPUDUVyAUtxwK6i4ZB6vzKZ/+0LLptoZw1eQfJ5zAzlRpAjBBPD+6VYwCbZWsER1wNX0bYqQ+hSXjqrzgP6dI20hJIUUdN8g6/yVILYSuVPwJjEFc68JmcWlEzIDGCft7v8+bv9H0n+pVwyxxV X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fb214d3-c686-4c25-12cf-08dd191c678d X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB6399.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 13:13:14.7190 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cw5FGI+mqjVPkerS585qronv3mmPYDibSx5VWJ4YausObhF5gp7rqBlvmS0g5TKuDHznv2XKe5VBVMfsnAN0lg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7586 X-Proofpoint-ORIG-GUID: 3qiXdXnKLFInPre7mMyLR28KAUI0VXBh X-Authority-Analysis: v=2.4 cv=eePHf6EH c=1 sm=1 tr=0 ts=67583e6e cx=c_pps a=coA4Samo6CBVwaisclppwQ==:117 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=RZcAm9yDv7YA:10 a=bRTqI5nwn0kA:10 a=Q4-j1AaZAAAA:8 a=t7CeM3EgAAAA:8 a=v6201HjlzFfrNr6R1u4A:9 a=9H3Qd4_ONW2Ztcrla5EB:22 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: 3qiXdXnKLFInPre7mMyLR28KAUI0VXBh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-10_06,2024-12-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=744 priorityscore=1501 spamscore=0 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2411120000 definitions=main-2412100098 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 ; Tue, 10 Dec 2024 13:13:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/877 Remove PACKAGECONFIG[selinux] as it has been added to libpam recipe in oe-core[1] and updated for meson. [1] https://git.openembedded.org/openembedded-core/commit/?id=15d0cb7c4b1278e869f440f949f5e9af2d305429 Signed-off-by: Yi Zhao --- recipes-extended/pam/libpam_selinux.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/recipes-extended/pam/libpam_selinux.inc b/recipes-extended/pam/libpam_selinux.inc index 2f8b945..8c11cac 100644 --- a/recipes-extended/pam/libpam_selinux.inc +++ b/recipes-extended/pam/libpam_selinux.inc @@ -1,4 +1 @@ inherit enable-selinux - -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" -RDEPENDS:${PN}-runtime += "${@target_selinux(d, 'pam-plugin-selinux')}" From patchwork Tue Dec 10 13:12:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yi Zhao X-Patchwork-Id: 53882 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 7D652C3DA4A for ; Tue, 10 Dec 2024 13:13:29 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.web10.9947.1733836400037024565 for ; Tue, 10 Dec 2024 05:13:20 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.166.238, mailfrom: prvs=20745f6cf3=yi.zhao@windriver.com) Received: from pps.filterd (m0250809.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BA6KQCp008981; Tue, 10 Dec 2024 05:13:19 -0800 Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2044.outbound.protection.outlook.com [104.47.73.44]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 43cwy1trsf-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Dec 2024 05:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Awo+uhyzL2UBriDAPVvgTcbheryJq30xRQCKZ5bTQqopYr5X2+1jSRcYf0v+Q/VMRM6ufmtHJjH+DYy3xTAkT20v8BBvQaX3VdBpiTMs000bODGl4KJ9jaTF9OlbWQ5HrABNbxD3wLVNU4ltbsqSBWfqopUfW1Y4br1Xnw9pJG953aCfglVhfObuM2z/nR7taBaM4nOVRLNpYHS0Mgm3Zi4o+I8FbtcnxV9J5/1QrgPADlDu08GkLayOTVY4ZFT0Hx4YKMkvxqwKAGk/DxgSvFutjS7RH9VRrrK2/YTAnMeHc2nYPygCKbcJiTgqz2FHi4iIS/gxEGXwRUSuzECfQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HTxpvXARs7tysj4k3NZgJfmebVEZc6XAVLkEiIt3M4M=; b=WKjG79ynEI+3zj0R8lt5FlNvjodvepMQrehaxhmBvdCMBQ0oKdJfr4YZevn9BKCNASgy7wsGWDC1SC/a+dANC+3URbvDuyoGUhiFeHpoQnk1lZOF/WNQsmyTL6lnJBE+o9qaxZDbCOPhMCOgu4b14rFrA8J5hKaDHm0W7Q7RgYL4mrcAQvrwxRf0ElYsAYJpNYpgCgjLttExN7UhBtPEUmVckf3RWhJAQLSsAjQHG+M+LlG9WrOPV2FGtn+aJfYWzyYTDbpRHec4WEvJY2Hp5Qb9vGlrN8S9jIZO5xOmJbkFJ3HwnnQ5tdPS/XZs6Ml5ISZLqxys3EiyWiDIMrSj+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) by PH0PR11MB7586.namprd11.prod.outlook.com (2603:10b6:510:26e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.14; Tue, 10 Dec 2024 13:13:16 +0000 Received: from DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad]) by DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad%7]) with mapi id 15.20.8207.017; Tue, 10 Dec 2024 13:13:16 +0000 From: Yi Zhao To: yocto-patches@lists.yoctoproject.org, joe@deserted.net, joe.macdonald@siemens.com Subject: [meta-selinux][PATCH 2/4] libselinux-python: fix build with swig 4.3 Date: Tue, 10 Dec 2024 21:12:54 +0800 Message-Id: <20241210131256.2393366-2-yi.zhao@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241210131256.2393366-1-yi.zhao@windriver.com> References: <20241210131256.2393366-1-yi.zhao@windriver.com> X-ClientProxiedBy: SGXP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::18) To DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB6399:EE_|PH0PR11MB7586:EE_ X-MS-Office365-Filtering-Correlation-Id: 41157cad-a31f-41ca-ee69-08dd191c68c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4Jp918bJCZpo4H3vnuVCLiYk1YWSwoh?= =?utf-8?q?iE1lLECzbREAP9BLN3HIntWJQagy7Vi1x+CIwUoOW7x4fzrlgHRDZ0ET6HLrJW0bp?= =?utf-8?q?eigh4Pcxo/HWueCxAQ8Ry0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mu1m8zF/AoKCdo8hkdPFZH1O0pszCrepWAIsT?= =?utf-8?q?dG5LEqa913zcxeFhPtpdPG23adCfRn0K6e3M5HoW8Lk3X+p/QTJdcCStLpsU4Hns2?= =?utf-8?q?PpdO0slFoXi4179rlVO3R5sFG8xxn4P+HxFN810GWSj6odZO3e8M5f2cueub7zPBj?= =?utf-8?q?g7nSL3WfBva0FQvHMkXR6lBDGkpkwZSihL/d2dnOUE75TqUB4dypE2bAjepOEXIrQ?= =?utf-8?q?q1P0nYfrqgDMVYHHHxKthYCsDSFksd2ra1TFBdXShYkZ90nOwTTGtVInIlJ9PNcWV?= =?utf-8?q?CdfwJTfJ5ZFhJljEvqMiJKgzkBsTlxZ3JrTrYoVOiiHz9yd9AuptOkaOwC/fYOo94?= =?utf-8?q?68nDhhSFyoxCYdnLHMNWCvCPhmvRRQmUJxcxEnC4F4D+52qikZVWxnY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB6399.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Z7bLCxBTtR0b8z/0mECUVBNOHLpt?= =?utf-8?q?sbJI2/Win0pxTGo4n3pLAU+LaCOPRMBKo+P4QVJgP5YOzP3XWe4WzS9vIa5Y+mnKJ?= =?utf-8?q?H7cmsM59eaxKr8OCsh4Z3bJG0GCQfdwW0i0dbnIi+rlUtZx6C0c90iLvWYrJu40nz?= =?utf-8?q?UruiC6nee36jyCNP9bgzLZ8U8CaUhZ2IuLvtJL6emqtnnVIftIsSHQzZQGLC3RfWq?= =?utf-8?q?sMFuvzEfGFOlozoHDz4l/YY0HRq9V5wmWzsMreknzSARIwln7g2ZWhNpyUtXlCAtZ?= =?utf-8?q?ifj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bFni23xsRTFeQEvscse/ZKuzj8z+gAHt3fUy+c338cUs0OAt09PS4PcwjaDNw6W?= =?utf-8?q?AAT4e5E5rLbrjwaLgBiNZSuvYYV2zksOr0wkLy701SO/enVIl+I+nchlsfa922oNt?= =?utf-8?q?ne4ZBYUJrUz3Lb0Vd3I00AfzYAuHRNoL6Y6iQJwSn3kaEmcKNiwl3nfyy6BlbPsPy?= =?utf-8?q?cSo25Mb1QtgT2bU6i84tOmXdfmRyVafSBmvWiwDv1q0iYuAAKxkbiHjNSSKE926Uw?= =?utf-8?q?yg1EiMFvAnASZ66FxI5tC3wO58+jdjzMGL+2xNQmSFikjVg5N1UQLkzE4SqBfVQDS?= =?utf-8?q?wr26xYl904F6C/kMKeWbDB+pJRMKlGj7PwpCkx15PH70ifzG0EVjH8TRGKombrk0t?= =?utf-8?q?Jbi0w1eOH7L7?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41157cad-a31f-41ca-ee69-08dd191c68c5 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB6399.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 13:13:16.5903 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0N5btaf14xeKMVEWPyOYrirtlVDWaCYgq5NdOYhx3G71dGJpVaKxvgaobd+Cm3nUR0E6D7bL4KPtZO34CVz4vA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7586 X-Proofpoint-ORIG-GUID: vjWVccRLyWUIRFFCHGGF6P1y4-txGH7Y X-Authority-Analysis: v=2.4 cv=eePHf6EH c=1 sm=1 tr=0 ts=67583e6e cx=c_pps a=coA4Samo6CBVwaisclppwQ==:117 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RZcAm9yDv7YA:10 a=bRTqI5nwn0kA:10 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=AWekD7wbPusstyTxx90A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-GUID: vjWVccRLyWUIRFFCHGGF6P1y4-txGH7Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-10_06,2024-12-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 phishscore=0 malwarescore=0 mlxscore=0 adultscore=0 bulkscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2411120000 definitions=main-2412100098 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 4BA6KQCp008981 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 ; Tue, 10 Dec 2024 13:13:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/878 Backport a patch to fix build with swig 4.3[1]. [1] https://github.com/SELinuxProject/selinux/issues/447 Signed-off-by: Yi Zhao --- .../selinux/libselinux-python_3.7.bb | 1 + ...bselinux-fix-swig-bindings-for-4.3.0.patch | 91 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 recipes-security/selinux/libselinux/0001-libselinux-fix-swig-bindings-for-4.3.0.patch diff --git a/recipes-security/selinux/libselinux-python_3.7.bb b/recipes-security/selinux/libselinux-python_3.7.bb index 3c5c489..5099e55 100644 --- a/recipes-security/selinux/libselinux-python_3.7.bb +++ b/recipes-security/selinux/libselinux-python_3.7.bb @@ -15,6 +15,7 @@ SRC_URI += "\ file://0001-Makefile-fix-python-modules-install-path-for-multili.patch \ file://0002-Do-not-use-PYCEXT-and-rely-on-the-installed-file-nam.patch \ file://0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch \ + file://0001-libselinux-fix-swig-bindings-for-4.3.0.patch \ " S = "${WORKDIR}/git/libselinux" diff --git a/recipes-security/selinux/libselinux/0001-libselinux-fix-swig-bindings-for-4.3.0.patch b/recipes-security/selinux/libselinux/0001-libselinux-fix-swig-bindings-for-4.3.0.patch new file mode 100644 index 0000000..277c36c --- /dev/null +++ b/recipes-security/selinux/libselinux/0001-libselinux-fix-swig-bindings-for-4.3.0.patch @@ -0,0 +1,91 @@ +From 8e0e718bae53fff30831b92cd784151d475a20da Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach +Date: Wed, 16 Oct 2024 20:48:11 +0200 +Subject: [PATCH] libselinux: fix swig bindings for 4.3.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +https://github.com/swig/swig/blob/master/CHANGES.current + +"[Python] #2907 Fix returning null from functions with output +parameters. Ensures OUTPUT and INOUT typemaps are handled +consistently wrt return type. + +New declaration of SWIG_Python_AppendOutput is now: + + SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void); + +The 3rd parameter is new and the new $isvoid special variable +should be passed to it, indicating whether or not the wrapped +function returns void. + +Also consider replacing with: + + SWIG_AppendOutput(PyObject* result, PyObject* obj); + +which calls SWIG_Python_AppendOutput with same parameters but adding $isvoid +for final parameter." + +Fixes: https://github.com/SELinuxProject/selinux/issues/447 + + selinuxswig_python_wrap.c: In function ‘_wrap_security_compute_user’: + selinuxswig_python_wrap.c:11499:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ + 11499 | resultobj = SWIG_Python_AppendOutput(resultobj, plist); + | ^~~~~~~~~~~~~~~~~~~~~~~~ + selinuxswig_python_wrap.c:1248:1: note: declared here + 1248 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) { + | ^~~~~~~~~~~~~~~~~~~~~~~~ + selinuxswig_python_wrap.c: In function ‘_wrap_security_compute_user_raw’: + selinuxswig_python_wrap.c:11570:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ + 11570 | resultobj = SWIG_Python_AppendOutput(resultobj, plist); + | ^~~~~~~~~~~~~~~~~~~~~~~~ + selinuxswig_python_wrap.c:1248:1: note: declared here + 1248 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) { + | ^~~~~~~~~~~~~~~~~~~~~~~~ + selinuxswig_python_wrap.c: In function ‘_wrap_security_get_boolean_names’: + selinuxswig_python_wrap.c:12470:17: error: too few arguments to function ‘SWIG_Python_AppendOutput’ + 12470 | resultobj = SWIG_Python_AppendOutput(resultobj, list); + | ^~~~~~~~~~~~~~~~~~~~~~~~ + selinuxswig_python_wrap.c:1248:1: note: declared here + 1248 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) { + | ^~~~~~~~~~~~~~~~~~~~~~~~ + error: command '/usr/bin/gcc' failed with exit code 1 + +Suggested-by: Jitka Plesnikova +Signed-off-by: Petr Lautrbach +Acked-by: James Carter + +Upstream-Status: Backport +[https://github.com/SELinuxProject/selinux/commit/8e0e718bae53fff30831b92cd784151d475a20da] + +Signed-off-by: Yi Zhao +--- + src/selinuxswig_python.i | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/selinuxswig_python.i b/src/selinuxswig_python.i +index 17e03b9e..03ed296d 100644 +--- a/src/selinuxswig_python.i ++++ b/src/selinuxswig_python.i +@@ -71,7 +71,7 @@ def install(src, dest): + for (i = 0; i < *$2; i++) { + PyList_SetItem(list, i, PyString_FromString((*$1)[i])); + } +- $result = SWIG_Python_AppendOutput($result, list); ++ $result = SWIG_AppendOutput($result, list); + } + + /* return a sid along with the result */ +@@ -108,7 +108,7 @@ def install(src, dest): + plist = PyList_New(0); + } + +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + + /* Makes functions in get_context_list.h return a Python list of contexts */ +-- +2.25.1 + From patchwork Tue Dec 10 13:12:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Zhao X-Patchwork-Id: 53880 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 85F36E77183 for ; Tue, 10 Dec 2024 13:13:29 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web10.9950.1733836405568368164 for ; Tue, 10 Dec 2024 05:13:25 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=20745f6cf3=yi.zhao@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BAAAEmo003066; Tue, 10 Dec 2024 13:13:24 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2171.outbound.protection.outlook.com [104.47.55.171]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 43cx4xaqpg-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Dec 2024 13:13:23 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=G7oRQgvIGCwuah2zFt6U5rhqxJ2tdPkl/pYRivG3r5xWdK91ZGOdTbIN8ECQnSeLqsjcFBjrfw5BXL2ZLFtBOjgSM52e+n7nKsp6v1i/sBrZcTAdiGXpH0XD/y4hHYRBD+K0axnz8A3tetY3SN+isizqQHWrZFa+ing1ifwwkDUtGasq7pSuTxC1Q9QGPmxbXRgVrVG5d83Jo56nMCAuspn/f+1ai6tibAgFiKWc6nMlNXy4yxNbHPachHqtvfS1eZv8ZvpTd7Eyg36u+k4BrrQImtrBm1BSJtYs2S8kxB8mLwCs8nB3ho9VFK6iDKFsHcJT5x/W/MQQ2Hww1lQCfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nR2wCpekwqxGyJwyhjQ1yTY22NDvdYwTz1F3+iODqYU=; b=mqY+b2ch24PRsoxVB4uwlWcU4aCsB6U714zmrmiCduvWz6sBM3uvFLwlsN+xiojmcHomhAhGDjYjOqM4+Pox9DV5hE3kipFyEdVA2BEe6Wbu0HZ9n9fGUwgvDQTpOQjZK53ff84hJfndRYKdJdDmq1T7+YwIfX7A56LDW0783Bm1wgQMg99DivKVTMKjnKRXShhjC1vWWJ6Lm/NLi28Wmjhffbd0EuQ+kpUDShMCLBFfcStgAjS6CsHrZYpv+56lqFxFMEvyJ2ciTswHWoLW5qsIZJKORFuvKAT4bq7BWdOuLlVVClUs5bu1EYfiW2e+Enm201vZa4qnknrb6eDwsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) by SJ2PR11MB8403.namprd11.prod.outlook.com (2603:10b6:a03:53c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Tue, 10 Dec 2024 13:13:19 +0000 Received: from DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad]) by DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad%7]) with mapi id 15.20.8207.017; Tue, 10 Dec 2024 13:13:18 +0000 From: Yi Zhao To: yocto-patches@lists.yoctoproject.org, joe@deserted.net, joe.macdonald@siemens.com Subject: [meta-selinux][PATCH 3/4] libsemanage: fix build with swig 4.3 Date: Tue, 10 Dec 2024 21:12:55 +0800 Message-Id: <20241210131256.2393366-3-yi.zhao@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241210131256.2393366-1-yi.zhao@windriver.com> References: <20241210131256.2393366-1-yi.zhao@windriver.com> X-ClientProxiedBy: SGXP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::18) To DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB6399:EE_|SJ2PR11MB8403:EE_ X-MS-Office365-Filtering-Correlation-Id: 01843d4a-36e1-4b7c-5ae8-08dd191c69e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: /SF5TzPDHai/TcudUhfKpW58b0vzTc52OtYjbQO1IXWgDDdQUIJgA4BwEDCqZv4gq8mU1sMJhdUElStXCQQuunsUVARddj5R/o9N86RF6d8uLb2IMkJyu5M9GuFVvr4E4V85noy9DG0Z2c4HwCGTEu4U2njeQ02gFmOmI6a1pLa8XnSOjN7wS8JOxArSq6KN2/x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cztS8L2cH63y/RuPqShBKbIdOJCNKcW9zIKdJtnh2SsCxGW3b1C4ltW3vH/layPggXgQFw1Rrg0Spqd30LNY/0WgdFMaJiJqe70quG16kSVOipU/KZrzYgWMFC1BoFZD0TABJRKtDth/19AFVxHvUIUzYFT6goUI9dsjKFTQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB6399.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aCaxy3woWcoxvuZGTCIoDTk6J6074RHdx0pGadm0egmBlJ9Qd1zUfdsQbNVFkyi+hRm8eRMtG+5RSfiFq9pENXIqrWbOudD5ddNgnk7TfdHptcVBcbTZelMZY9GXMosUM9u7seWbLWwBv1t4LOVd2cZ5y8Mz8v3acHbWUJt49TvB0iO0vr1myv3ZthGLO1An4kB+STyP/l5LFGcW4GDCZpwKGxuTbJvhvjuHnDbE43iIHFMGKIk3osr0+rpk+OrbFXoTfsitBA5wIOnn+92WjkzSAwaO6WkNMBOHZrejIiaLVLOVorhMWoumHy8vkRT7qy9igO/eVTMSnzgiLSbxctkVx3zo8LF10KvONtQmw/QufET6bbhZaKYw/W+wKWMWagdWd2iOf7ZcWR2f5F3gWdhzSlM45dqmM6tiyaIgbzeAo14Ii48RzMjR6GpBypkZ9CG46YMlPHr40QXjaBj0yhNx1LyLGV3h+n70dsEkEi9tD5zrkLIYxH0Vf1aqZIEUXMVT7ZFbJebFfYHDxDADGID6C7ZGM8aDTPryl8Qgi7U9i5J/U/j4wmXJ2wgZLh3CzWGdi+OFa8PLGIwy6tTbGO+KPohmbmldNmAA4fu/ucWud/fjXZMGuvDP/H/o3Ley4fMvDECsMhHRZy+EKri05r8yYkm9tcAgUP5eVTkWnTp+XB6oHZFs5WhUQFHIoC2URJiS+NLICfF1aK2Bu/g1TLa7BAmnGA4CVEAyG5DrNTxhw3URWDVy9jIUPcH7Ij7chvskQT98jXLGrU+4q3lKEwB+0TJx97JQxmAQTKFs8DNbr7CZlx2LG1i1A4oAwwZsVETBIqN9Pi8H6LeL22vFqYmkUeGY01hshp+jiaOxSUQwz9Wk0fqCbspXEbf6vm6LunLGFw0STpWsG8oOjxxesaFoF/ElQVDfmuxxDS8sBE6u2nmIN8s2NK/Znd4tZXgIbhYllisOEr2IjTN9OdmZEcQCpGxFZPgsecn5hfVlBeNSQovVXSasFTS1YOmlii/BfIhj7BxO3g43mgsx6C+c5hxgWXGAMSztw0oI82XKOWUxpNwRILeAcCDz8jqfB4O8fJvalvgMrysibZTeyYWY9OpsG+WKru367kpf25c2+rjFl/BSyf7a1BaYboyftbilL/6m1mKDSuqjLeXc8avMoThHIBQT2NYC+VJJp2zgb9yk9GVyVRT1VYQ7LL2DeRjY2nlZKCBlFh0WKhN9Qmtcn4WjmQCLBsTLkPDcWy2UEdxuC+1XGT5Sypb2BhmNOvjrG073N2J7jFzhaR4pSG2f3FQPfm6zrnzYa1Ebq1zP7QFT7+VXBx9GvRs/rHLYlFj8EyHYXFGcN4vHLBJZBpzC9BwOYx6kDHkdA4Ctlys3izEdZbzB6CgnF76X1gv93VVeFFoAItjB9+eGYkizrj9J4ynK3lf6ayZS3DXasNHAIJChfzFhedWKkZUAHwudbqaYEado+CmXqjyYxgTvBDSr3hExg86a5VVVYPfPsu7+bICPkqFyGUkHj3t34QRc1rHQiuWRuxukezf6IvmDV/2klc61Rm+F72wrdfFrTAfFIVjC9GCRX8OgwUHSzkXaBK85 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01843d4a-36e1-4b7c-5ae8-08dd191c69e4 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB6399.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 13:13:18.4857 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9nvIHzdcuEmiC6PmhdKtQuUxuCOHWj7S4NL35Pc/0elE+tlmQ1Nejbv1OJ11+m04eH1I3CCKXdJiA8FfkF/4aA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8403 X-Proofpoint-GUID: YkM9OAJvQz3Lwk1jAnKqZcpzUd-Q3Uzb X-Proofpoint-ORIG-GUID: YkM9OAJvQz3Lwk1jAnKqZcpzUd-Q3Uzb X-Authority-Analysis: v=2.4 cv=Y/UCsgeN c=1 sm=1 tr=0 ts=67583e73 cx=c_pps a=98TgpmV4a5moxWevO5qy4g==:117 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=RZcAm9yDv7YA:10 a=bRTqI5nwn0kA:10 a=NEAV23lmAAAA:8 a=t7CeM3EgAAAA:8 a=20KFwNOVAAAA:8 a=pGLkceISAAAA:8 a=_a8wGqok5QfCM0N-IlwA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-10_06,2024-12-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2411120000 definitions=main-2412100098 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 ; Tue, 10 Dec 2024 13:13:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/880 Backport a patch to fix build with swig 4.3[1]. [1] https://github.com/SELinuxProject/selinux/issues/447 Signed-off-by: Yi Zhao --- ...semanage-fix-swig-bindings-for-4.3.0.patch | 422 ++++++++++++++++++ recipes-security/selinux/libsemanage_3.7.bb | 1 + 2 files changed, 423 insertions(+) create mode 100644 recipes-security/selinux/libsemanage/0001-libsemanage-fix-swig-bindings-for-4.3.0.patch diff --git a/recipes-security/selinux/libsemanage/0001-libsemanage-fix-swig-bindings-for-4.3.0.patch b/recipes-security/selinux/libsemanage/0001-libsemanage-fix-swig-bindings-for-4.3.0.patch new file mode 100644 index 0000000..cba77c9 --- /dev/null +++ b/recipes-security/selinux/libsemanage/0001-libsemanage-fix-swig-bindings-for-4.3.0.patch @@ -0,0 +1,422 @@ +From e38815d7b44cac435195c82a54d2bf2517bc4b1a Mon Sep 17 00:00:00 2001 +From: Petr Lautrbach +Date: Wed, 16 Oct 2024 20:48:12 +0200 +Subject: [PATCH] libsemanage: fix swig bindings for 4.3.0 + +https://github.com/swig/swig/blob/master/CHANGES.current + +"[Python] #2907 Fix returning null from functions with output +parameters. Ensures OUTPUT and INOUT typemaps are handled +consistently wrt return type. + +New declaration of SWIG_Python_AppendOutput is now: + + SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void); + +The 3rd parameter is new and the new $isvoid special variable +should be passed to it, indicating whether or not the wrapped +function returns void. + +Also consider replacing with: + + SWIG_AppendOutput(PyObject* result, PyObject* obj); + +which calls SWIG_Python_AppendOutput with same parameters but adding $isvoid +for final parameter." + +Fixes: https://github.com/SELinuxProject/selinux/issues/447 + +Suggested-by: Jitka Plesnikova +Signed-off-by: Petr Lautrbach +Acked-by: James Carter + +Upstream-Status: Backport +[https://github.com/SELinuxProject/selinux/commit/e38815d7b44cac435195c82a54d2bf2517bc4b1a] + +Signed-off-by: Yi Zhao +--- + src/semanageswig_python.i | 64 +++++++++++++-------------- + src/semanageswig_ruby.i | 32 +++++++------- + 2 files changed, 48 insertions(+), 48 deletions(-) + +diff --git a/src/semanageswig_python.i b/src/semanageswig_python.i +index 5f011396..0e27424f 100644 +--- a/src/semanageswig_python.i ++++ b/src/semanageswig_python.i +@@ -111,7 +111,7 @@ + } + + %typemap(argout) char** { +- $result = SWIG_Python_AppendOutput($result, SWIG_FromCharPtr(*$1)); ++ $result = SWIG_AppendOutput($result, SWIG_FromCharPtr(*$1)); + free(*$1); + } + +@@ -134,7 +134,7 @@ + NULL, NULL, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -148,7 +148,7 @@ + } + + %typemap(argout) semanage_module_info_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + /** module key typemaps **/ +@@ -160,7 +160,7 @@ + } + + %typemap(argout) semanage_module_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + /** context typemaps **/ +@@ -172,7 +172,7 @@ + } + + %typemap(argout) semanage_context_t** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + /** boolean typemaps **/ +@@ -197,7 +197,7 @@ + (void (*) (void*)) &semanage_bool_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -207,11 +207,11 @@ + } + + %typemap(argout) semanage_bool_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_bool_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_bool_key_t **(semanage_bool_key_t *temp=NULL) { +@@ -240,7 +240,7 @@ + (void (*) (void*)) &semanage_fcontext_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -250,11 +250,11 @@ + } + + %typemap(argout) semanage_fcontext_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_fcontext_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_fcontext_key_t **(semanage_fcontext_key_t *temp=NULL) { +@@ -284,7 +284,7 @@ + (void (*) (void*)) &semanage_iface_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -294,11 +294,11 @@ + } + + %typemap(argout) semanage_iface_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_iface_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_iface_key_t **(semanage_iface_key_t *temp=NULL) { +@@ -328,7 +328,7 @@ + (void (*) (void*)) &semanage_seuser_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -338,11 +338,11 @@ + } + + %typemap(argout) semanage_seuser_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_seuser_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_seuser_key_t **(semanage_seuser_key_t *temp=NULL) { +@@ -371,7 +371,7 @@ + (void (*) (void*)) &semanage_user_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -381,11 +381,11 @@ + } + + %typemap(argout) semanage_user_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_user_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_user_key_t **(semanage_user_key_t *temp=NULL) { +@@ -414,7 +414,7 @@ + (void (*) (void*)) &semanage_port_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -424,11 +424,11 @@ + } + + %typemap(argout) semanage_port_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_port_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_port_key_t **(semanage_port_key_t *temp=NULL) { +@@ -457,7 +457,7 @@ + (void (*) (void*)) &semanage_ibpkey_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -467,11 +467,11 @@ + } + + %typemap(argout) semanage_ibpkey_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_ibpkey_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_ibpkey_key_t **(semanage_ibpkey_key_t *temp=NULL) { +@@ -500,7 +500,7 @@ + (void (*) (void*)) &semanage_ibendport_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -510,11 +510,11 @@ + } + + %typemap(argout) semanage_ibendport_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_ibendport_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_ibendport_key_t **(semanage_ibendport_key_t *temp=NULL) { +@@ -543,7 +543,7 @@ + (void (*) (void*)) &semanage_node_free, &plist) < 0) + $result = SWIG_From_int(STATUS_ERR); + else +- $result = SWIG_Python_AppendOutput($result, plist); ++ $result = SWIG_AppendOutput($result, plist); + } + } + } +@@ -553,12 +553,12 @@ + } + + %typemap(argout) semanage_node_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + + %typemap(argout) semanage_node_key_t ** { +- $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_node_key_t **(semanage_node_key_t *temp=NULL) { +diff --git a/src/semanageswig_ruby.i b/src/semanageswig_ruby.i +index e030e4ae..9010b545 100644 +--- a/src/semanageswig_ruby.i ++++ b/src/semanageswig_ruby.i +@@ -38,7 +38,7 @@ + } + + %typemap(argout) semanage_module_info_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + /** context typemaps **/ +@@ -50,7 +50,7 @@ + } + + %typemap(argout) semanage_context_t** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + /** boolean typemaps **/ +@@ -66,11 +66,11 @@ + } + + %typemap(argout) semanage_bool_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_bool_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_bool_key_t **(semanage_bool_key_t *temp=NULL) { +@@ -90,11 +90,11 @@ + } + + %typemap(argout) semanage_fcontext_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_fcontext_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_fcontext_key_t **(semanage_fcontext_key_t *temp=NULL) { +@@ -114,11 +114,11 @@ + } + + %typemap(argout) semanage_iface_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_iface_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_iface_key_t **(semanage_iface_key_t *temp=NULL) { +@@ -138,11 +138,11 @@ + } + + %typemap(argout) semanage_seuser_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_seuser_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_seuser_key_t **(semanage_seuser_key_t *temp=NULL) { +@@ -162,11 +162,11 @@ + } + + %typemap(argout) semanage_user_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_user_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_user_key_t **(semanage_user_key_t *temp=NULL) { +@@ -186,11 +186,11 @@ + } + + %typemap(argout) semanage_port_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(argout) semanage_port_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_port_key_t **(semanage_port_key_t *temp=NULL) { +@@ -210,12 +210,12 @@ + } + + %typemap(argout) semanage_node_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + + %typemap(argout) semanage_node_key_t ** { +- $result = SWIG_Ruby_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); ++ $result = SWIG_AppendOutput($result, SWIG_NewPointerObj(*$1, $*1_descriptor, 0)); + } + + %typemap(in, numinputs=0) semanage_node_key_t **(semanage_node_key_t *temp=NULL) { +-- +2.25.1 + diff --git a/recipes-security/selinux/libsemanage_3.7.bb b/recipes-security/selinux/libsemanage_3.7.bb index 93eb870..7e6c91f 100644 --- a/recipes-security/selinux/libsemanage_3.7.bb +++ b/recipes-security/selinux/libsemanage_3.7.bb @@ -14,6 +14,7 @@ inherit lib_package python3native SRC_URI += "file://libsemanage-Fix-execve-segfaults-on-Ubuntu.patch \ file://libsemanage-allow-to-disable-audit-support.patch \ file://libsemanage-disable-expand-check-on-policy-load.patch \ + file://0001-libsemanage-fix-swig-bindings-for-4.3.0.patch \ " DEPENDS = "libsepol libselinux python3 bison-native swig-native" From patchwork Tue Dec 10 13:12:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Zhao X-Patchwork-Id: 53881 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 700DEE7717F for ; Tue, 10 Dec 2024 13:13:29 +0000 (UTC) Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) by mx.groups.io with SMTP id smtpd.web11.10060.1733836404718499343 for ; Tue, 10 Dec 2024 05:13:24 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: windriver.com, ip: 205.220.178.238, mailfrom: prvs=20745f6cf3=yi.zhao@windriver.com) Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BAAAEmn003066; Tue, 10 Dec 2024 13:13:23 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2171.outbound.protection.outlook.com [104.47.55.171]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 43cx4xaqpg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Dec 2024 13:13:23 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l7Y/r9/3SpixgUoxmUW9zsQAJv916yBpqZ5APHzwUQFwV3BWehXPy7c143HDA8D3PBKuMEC4Cf2u8jZt4eGtDLcessY/Rs3XkaNzjkpHzUJ1uoCKkNm6Le8360X/6+jVVkHOW6JNGb5qLFehxdV0D97Rsmu8XcTMIZhx8jh+RCdy0UDGXzn8GDOQbkjOc7UzBJ2RwXHXCLjDsZBUmzlpCfhZWL+EeqXD7iXKvHU2CNPbQb4zw3miSNh28pFtuULf0A+ToTbiMjbHEuvsFetbONcM1csab5rbPJIDlwTWtVUpNSbwPh0C1ywhidk/+RrupgWwtOYlwYFvanMCtntDwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6qfE2G+RISYsahYFHxOrRrHyoPFLOUnUZsc/mtKPAsE=; b=nzgNgWjO5OOx/71xkHInqacJABvHYLcyO0bFXqqqmEPxtR9PYIDjt4DLCXhA/lkdh3BIUl+O3ZkLXkm4dqzhaS755WU1EXIla3//l23eihIYIn0BKLvz4ebjSxDRwHN2/DpBMaJOirNDKI/zdMVyU1L2L4F7bS+EQRandtMiJLHvA0sjcWBqx/ajvnWZOai/HtBafl/nHXPJTMr6XBEUhUAohax83/iyQtENrRGA6lzBLB9Bq10CpdfbMar8Y3Kc/QuiR9OzN/AlDo2a1HhSAfiz4QJvhTaV6elZ6VN+HhbJzvMQIEBqRVJ4FkSsgfjCcrp+V0nxrptiP8P78bElxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) by SJ2PR11MB8403.namprd11.prod.outlook.com (2603:10b6:a03:53c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Tue, 10 Dec 2024 13:13:20 +0000 Received: from DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad]) by DS0PR11MB6399.namprd11.prod.outlook.com ([fe80::2b44:787c:e7ee:bfad%7]) with mapi id 15.20.8207.017; Tue, 10 Dec 2024 13:13:20 +0000 From: Yi Zhao To: yocto-patches@lists.yoctoproject.org, joe@deserted.net, joe.macdonald@siemens.com Subject: [meta-selinux][PATCH 4/4] SELinux-FAQ: drop debug-tweaks Date: Tue, 10 Dec 2024 21:12:56 +0800 Message-Id: <20241210131256.2393366-4-yi.zhao@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241210131256.2393366-1-yi.zhao@windriver.com> References: <20241210131256.2393366-1-yi.zhao@windriver.com> X-ClientProxiedBy: SGXP274CA0006.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::18) To DS0PR11MB6399.namprd11.prod.outlook.com (2603:10b6:8:c8::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB6399:EE_|SJ2PR11MB8403:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bc4fa53-11b0-4d64-9a28-08dd191c6b02 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: gX1t9jk7JScrrSqfaZQPfUlHj0q5XgPH5Gjg3zrz2ToPXLV2yiNrY+F3ZmIDDQH0vaLsEuXfTcGHQQoyp5j6LPYdfGmd/T++QM+JzSL5TrlAG2rhfw9sihFfZaz9cTmaGCT0VwlxTAn3gNcjDPDJpz1Asd0KeTTQkd3SIOBJY5B5rWK4mDct9oO+o4ermBlNaSxm76q0kPLRmdQedUMhoccDc9Lg+ghjNFRbCGicQfAy0Cd6bTDEcVWetuEH4xZMDU6ljHc7B2b4AMZHmPZnBiZqde1t2V43L5CqqA7Nh5eJETDdVoIkMTS8FCb+3Vfu81QyCjNWYkB4qGDrgkQZqPRaqgP7gzF1K+FF3f5krhn+dKh+2eboqYeYPegS/tn9kYygGN2zNgRbBV7ZUJliB0BA6VRzZlC/3gTAC9ZS+SWXJ5XB7C/CkivVEohklfqkNzlTHHPuWae4l5d1Rlukz9EI4h3wE9n9tsXxG1z5haewbGscRJWMEYL81lnYXb4DHV4zsrxy/iSmeDVl7cjV3s0PBSqKWzHMTUZh+QtzHs26NOuaZ8It6UUamiPCuBnGJeDEbI+iYeCaNU/W5ZmrjMaiIZ4ljIEN8worLsYW2aMAoG0rt1BA0MBjxR2/K7ZpXgy3cJLWryz77cnKV6UKEX61Clh0XoOre91RIpJ1pDjvDryGzNzZ8u1chRdardqwMbTMMRfmFeq56SVctgsoTnOpXvp0nVJ9yMT0K7OfcMKUydmP6/rRRXcuporjn3tQQ63arwPkIU+QbabxhTIp9jXvenpBQkCHqiXbBEqqqRsssHv2cgGS4Q6PPCzyxtXeDc5XmzCI+3qFwFslVBo8uzR6yCibwqx6sMK9tRUA8Z9W8K2ZvVKKLF4r8a1y1aza3/viDvr18WR/2ZLn98CMzAtpGLpItwfa56GbLn0VTCEgpzeX5phVJkGlNb8bD795PLR6HhtTZDAloWUQk2GkAmh+bJwPZy1iFn2C5aFLDJTA250iUj6ulzNAFOPePnnWw20E4vNHTrfZM1bBE+wAX1yMEwnqPAiENqqI7zzoddwGTKL2tu90d/RPli46/nESYKBkP7tNPSpNSo71ixzX/CVuofDS4lGFZQ3FWki0AEuJwpwvysov+BveaevY4E3LJrF64qI7hKeAVS68QxY/XSKiVdQI5FL49MEzi07lW5NfO6bab9UYxSLNtt9uMnmE3L2wYroCE2Any0ipT4xPwp+ljj7F7iRn65zvJD2xv/wXxgQv2c1Q3W3k1uRfK29KIuQxTRXf6z99JbA1diKAeZ4cHd0zyvQs2MIssUQwDDNsMQlrk7SHy8IUh3sJWBSyEeMvgk8/aIFsL9H2KLGNfEbc0/9xz4AaHRPOIVGzW0zjFpmRs0LE1+6U4KTdw4b9GMCPXMVCDoLJh+qjfNT4ew== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB6399.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S/y8zrCHv2//ljQf55zDv3j0hC+hDy6/xTAY4VnaoFk1dYrr/jbR1mQH4DvhbfltzfKFwOOVEwm2VDinKYGRXxyRctqRjQxYAkxh8E2afQfmfHs6eYalOMLqu0Ij3JSoMgH6SLnbLIJ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AuzCpQUQusiMwc6HVakBFLud7EPf+O1Xh4tGmp7jInYVRvh68rJK7og5/DpvtuYBWsG+imrVoMGaT9xs+crSumeZp6mtlgQaDvljlaW55N7Chv3g6f/Wclr+aB1M6/IArJ6TDEetsfPlg82ik17iisveyoz4h+XgXEbi/u/R7ukgA426s4GIIjpyYvXQ+VWmAuvDsG4dLdc9+C+pqgZwFZk+xV3lxW1NszgKwPjSvbGF/FMmz6VaD7DqrNaaI1Qc/FeZeG55distsDgAIiW++HVKctKzmg0cx0hiVhdjwa3oPZXKRXkQkzPXCZXEX8e5dgBO5SnCRD8VtDBexdlIpKZvMMqfMlvLyESV+QBtBkvtOuK7jH5CZCWSB8IhSMEF70 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bc4fa53-11b0-4d64-9a28-08dd191c6b02 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB6399.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 13:13:20.5533 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PLG7HMpohJJUQ4v6578KpGMXpdrL8DMC+bCcf3Rqbid8A4jCguhAEV26oN4uLOFleqyj4tU6Y0sZOpudqD9Ntw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8403 X-Proofpoint-GUID: JcOciisHlnPa8JJOw6VbA1fm-CoAOzH4 X-Proofpoint-ORIG-GUID: JcOciisHlnPa8JJOw6VbA1fm-CoAOzH4 X-Authority-Analysis: v=2.4 cv=Y/UCsgeN c=1 sm=1 tr=0 ts=67583e73 cx=c_pps a=98TgpmV4a5moxWevO5qy4g==:117 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=RZcAm9yDv7YA:10 a=bRTqI5nwn0kA:10 a=t7CeM3EgAAAA:8 a=_Nka1VkREi1miMkW4ZsA:9 a=FdTzh2GWekK77mhwV6Dw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2024-12-10_06,2024-12-10_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 phishscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 spamscore=0 impostorscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.21.0-2411120000 definitions=main-2412100098 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 ; Tue, 10 Dec 2024 13:13:29 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/879 The debug-tweaks IMAGE_FEATURE has been removed in oe-core. Replace it with allow-empty-password. Signed-off-by: Yi Zhao --- SELinux-FAQ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SELinux-FAQ b/SELinux-FAQ index 2ae6649..21387a1 100644 --- a/SELinux-FAQ +++ b/SELinux-FAQ @@ -146,7 +146,7 @@ Please check "PermitEmptyPasswords" in /etc/ssh/sshd_config. If it is set to "yes", set to "no" then restart sshd. That's because pam_selinux module does not allow sshd to set PermitEmptyPasswords to "yes". -Note: If both IMAGE_FEATURES debug-tweaks ssh-server-openssh are enabled, this +Note: If both IMAGE_FEATURES allow-empty-password and ssh-server-openssh are enabled, this "PermitEmptyPasswords" will be set to "yes" by default for Poky images.