Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4028286ybb; Mon, 23 Mar 2020 12:06:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vviBtIHx/5J68KUWCoOZ9xbxM4D4Z8cEjxQIPVXJQ0aB4ly/cMDgIoR5RcFNQ0osb45kBuL X-Received: by 2002:aca:3284:: with SMTP id y126mr592198oiy.175.1584990413682; Mon, 23 Mar 2020 12:06:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584990413; cv=pass; d=google.com; s=arc-20160816; b=ER4cW6gqT0/tJAyeCtJiCchin6TOkIZBWZTLW+tIzlize8DZ0tHpaGIQ4yYcl05zNp fMIT5/DjjiEoUTdnBHA4enDcIJrTS4rn7i1/e78N3pdva9862tgEdzI2anudTXZMoiLg /B2B5oy9we9saY1QdaPQjPIl5znbHKkCGVtT/DhIobYa6t9nBsrSjuVmnwYpM5FtWYB8 k9JI24oX6C9Pj1RdiasCwsjwaJ1SdLHrfdS3nKIJs+pg0wj0VSgYEkgrHBuue4D/6NZU oodMV1zqB+j2wdnX/50ODLeuBtGcSgThf+CpHHlh6oHXJ6j56o02vr+gaWKtHeXv26lV 3I2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature:dkim-signature; bh=aWI0ufuT2jljY7C07J2YbCR3c+JaS8oFlDcenGBsKKQ=; b=KW9324CMQ7iQKnZjIkGx+KES2a8cqf9leWJ3OWCPX4tw5htxgEd0HmKMxYxFt7Z4E+ gVmOZ/Kl4bZfIM+xT8e+zE5fxYcf12HeP+qBxgsOc8ifeWpsZVehN1MFlL+p3eL/qfYM GsC82zqlECSIRnaEKMLqi2UlsGDFO5rdZA1EgHJaa6HJutCBOQ6RH9RbepvGk4JKgqU4 bV5DgQfzMMA5ce1Uo9X4saxDEV+l8YJWTchnXYvwYaIBkWxOZNZ99986X09ZbcaPjE5b toHE1iF1Z5kQO/xB9PZXgiHzDenD73qn1Ng13venm45CuQCbtP2zgJLRRI0TAhuhuhh8 sXcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=qelVB0EH; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=RhzOubAm; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si9020202otn.175.2020.03.23.12.06.36; Mon, 23 Mar 2020 12:06:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=qelVB0EH; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=RhzOubAm; arc=pass (i=1 spf=pass spfdomain=fb.com dkim=pass dkdomain=fb.com dmarc=pass fromdomain=fb.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbgCWTF1 (ORCPT + 99 others); Mon, 23 Mar 2020 15:05:27 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:2090 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727624AbgCWTF1 (ORCPT ); Mon, 23 Mar 2020 15:05:27 -0400 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02NIus6Y008960; Mon, 23 Mar 2020 12:05:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : in-reply-to : content-type : content-transfer-encoding : mime-version; s=facebook; bh=aWI0ufuT2jljY7C07J2YbCR3c+JaS8oFlDcenGBsKKQ=; b=qelVB0EHQ7uJcUsEdiJoVQZ/T0tWfQQpUriBWyYVIacLBs1/acYzIKkt6jJR9j1lp2n+ +ncwHQyplUPlcjby7jMkjwuayLA4TipXgk8SOqY66k+CwLXyJT77vACrgtAsRblKWfQf s4vtlMlettQx11blNEm1Y/dZLLVzW9p+cPs= Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com with ESMTP id 2yx32wen7e-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 23 Mar 2020 12:05:07 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (100.104.98.9) by o365-in.thefacebook.com (100.104.94.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Mon, 23 Mar 2020 12:05:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ib3B1i/HQL+vvmTWpRWmMpSQuyLhVqaiPsWOWHPTB6u8dgYA4lDgEC68/2JEkoALMiO1b2nhYxtuj6Lt7WYdOdA0zM8DT6nRO6oB9fpss1uOQceDp0tcwq9WIP9iZYGyrfDLPbCU0mXCoe+1ivKWhoTS2bNT2g6N7s946CEFzW+eFD+jm8CO/6WeG9nUu/nvaSyvCqUtwzQ88uiQwAfZWgc6Ei9Yj4UD06JqZV1vjxxOEzR3P4nL78HVlp62fEUNkwGFp5seOSRw8WVavitOTDkJ7t0448tXy1ksqHHYW0GnohQsLXk3waA/datBhpSe9t3qS/7JP8xFSVHuSPKNsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aWI0ufuT2jljY7C07J2YbCR3c+JaS8oFlDcenGBsKKQ=; b=D7n1hN8zSGWerxp9mTtxK3rsrorkov/vqZ5IkkNUR2WMft6cvjL2JmKxVQY2MDy9qGvRye6oScOY/1RsIDQmGUQMND0G2PqCP5wxXDQIaKrWLqmG+UDasbMVe2zjAj5zPPgMeD3qW4UZ7iVuT6i1dT23k6Kl0eNXWp51hTYvy6rEjiSiDV40RXn915Ml9I2kbIrhfJpGsdnNPHckUpYI3cdBGnOXDJYGGF99jysOucWzMKsIuOmrQfe9aXcK0Q15kPLGC+dNP8MM2xB6a8b/v1qB60J+cRCxlJN6SihDvrn/2UISBmekcnRyzAE9ykwfSTV+flhRxObJP7i6G6FEfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fb.com; dmarc=pass action=none header.from=fb.com; dkim=pass header.d=fb.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector2-fb-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aWI0ufuT2jljY7C07J2YbCR3c+JaS8oFlDcenGBsKKQ=; b=RhzOubAmHtK5ZqGznf7hYKhzXA4/W/6dlVAql/8hw3KPmzU718Gk0BOf1e4V62qzbCUdVjYmeNppTwg22zWLWgvouuIH9eLVKN8lQNO9TT/B2qDo5GQKOHXIWOE+jX9S7FyQl3PUx2b6N6FujAkEgqqv86o1WCG/x5E1R1Ogtls= Received: from MW3PR15MB3883.namprd15.prod.outlook.com (2603:10b6:303:51::22) by MW3PR15MB3882.namprd15.prod.outlook.com (2603:10b6:303:49::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Mon, 23 Mar 2020 19:04:52 +0000 Received: from MW3PR15MB3883.namprd15.prod.outlook.com ([fe80::a49b:8546:912f:dd98]) by MW3PR15MB3883.namprd15.prod.outlook.com ([fe80::a49b:8546:912f:dd98%5]) with mapi id 15.20.2835.021; Mon, 23 Mar 2020 19:04:52 +0000 Subject: Re: [PATCH bpf-next v5 3/7] bpf: lsm: provide attachment points for BPF LSM programs To: KP Singh , , , CC: Brendan Jackman , Florent Revest , Alexei Starovoitov , Daniel Borkmann , James Morris , Kees Cook , Paul Turner , Jann Horn , Florent Revest , Brendan Jackman , Greg Kroah-Hartman References: <20200323164415.12943-1-kpsingh@chromium.org> <20200323164415.12943-4-kpsingh@chromium.org> From: Yonghong Song Message-ID: <5ce03d5b-fef6-c48d-0d9a-3ea6bc4e1401@fb.com> Date: Mon, 23 Mar 2020 12:04:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 In-Reply-To: <20200323164415.12943-4-kpsingh@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MWHPR18CA0033.namprd18.prod.outlook.com (2603:10b6:320:31::19) To MW3PR15MB3883.namprd15.prod.outlook.com (2603:10b6:303:51::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from MacBook-Pro-52.local (2620:10d:c090:400::5:2131) by MWHPR18CA0033.namprd18.prod.outlook.com (2603:10b6:320:31::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20 via Frontend Transport; Mon, 23 Mar 2020 19:04:50 +0000 X-Originating-IP: [2620:10d:c090:400::5:2131] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7feb8bd6-0dbf-432d-3e12-08d7cf5d1107 X-MS-TrafficTypeDiagnostic: MW3PR15MB3882: X-Microsoft-Antispam-PRVS: X-FB-Source: Internal X-MS-Oob-TLC-OOBClassifiers: OLM:302; X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(136003)(396003)(376002)(366004)(39860400002)(346002)(199004)(4744005)(31686004)(2616005)(54906003)(86362001)(316002)(31696002)(2906002)(16526019)(4326008)(7416002)(186003)(8936002)(81156014)(81166006)(8676002)(52116002)(6486002)(478600001)(36756003)(66556008)(66946007)(5660300002)(66476007)(6506007)(6512007)(53546011);DIR:OUT;SFP:1102;SCL:1;SRVR:MW3PR15MB3882;H:MW3PR15MB3883.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oDN1cc9/a7UksVj4UoSFVZ3+HOsw8LzYtVZd36Hyb0xAHIHPPXAxwSq3YMC+yXcDHJVnmqxPh6lpwPB9dO2a4dX+VbrMvwuU2rgz+CBH4wwO4pbrRWphe8805WsTwi/Umw66OnQXKMic3eRDEjsD2fogcv7ma4eM/EQuvj9MGLsp8Kz87XTkKzHvluDu2LgZfXtOhdGLClbHXh+/2dB/GT1zlTamlj/sWKHSFm3K3OG7QFzJ3ryKIgDr958C22OSEZw7sH5UOb7tTLg9+S6xASnSHYuOX5BG3YTHWtCyh1D2/sYXRFApx9bPs3gFLov6MfddlgjVnTVYeyc2y9Oymht2saKDYemEKYtPBUy/+CxqdSbg0zmNeBn4T5Kw9O0vOj3fubhodPfyKJwxTgFCPKkp7HAbrCmwMVsEW35qSX3dSis8Y6P5ePxH8b7TWdSr X-MS-Exchange-AntiSpam-MessageData: AyP5NkOSOHWqpI9e+2I0hUQC/Ytht22Ns+cl6yQ5KzT4gfNVIbOXyackrXN4/VC+8K+Y93qo2WtnS+YUwCWkNBNkrJNXP/oLoJHXNcwPgzJ8BWGGZ+wHvrIeR/KJUw8dO7G0bt/pV5z53afBBeF6nD+WpbjzsqMQbl1eMpjtAjCrZO91cezBEu2IFRWqQSVE X-MS-Exchange-CrossTenant-Network-Message-Id: 7feb8bd6-0dbf-432d-3e12-08d7cf5d1107 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2020 19:04:52.2542 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ih1cUTI1BEHEzb1/g15b0hgxO3EFEN3XOSc+Z31Wnr7ITggpzS2eyHoadcqY9915 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR15MB3882 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-23_07:2020-03-23,2020-03-23 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 mlxscore=0 impostorscore=0 mlxlogscore=686 spamscore=0 suspectscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003230096 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/23/20 9:44 AM, KP Singh wrote: > From: KP Singh > > When CONFIG_BPF_LSM is enabled, nops functions, bpf_lsm_, are > generated for each LSM hook. These nops are initialized as LSM hooks in > a subsequent patch. > > Signed-off-by: KP Singh > Reviewed-by: Brendan Jackman > Reviewed-by: Florent Revest Acked-by: Yonghong Song