Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2737238ybe; Sat, 14 Sep 2019 23:07:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqweYnh8ARIXLOIKfMIFs/tdmT6Z1KOQHkY3WWKdS4tWyPszeETJeBT2xpyWEssEBCKHfDHX X-Received: by 2002:a17:906:8158:: with SMTP id z24mr45805126ejw.54.1568527669364; Sat, 14 Sep 2019 23:07:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568527669; cv=pass; d=google.com; s=arc-20160816; b=Og29ZK+epO9T6ooqYvmOjlOCAmKzkoZNX5EFqxJUfBeORjHpiJ3vXsSDXFoLPxL2DH iMY19MvK8xPxelfyvxMxtHlO3gUy1csW7RpTFj4MmaqvcDo7+iTl3HXEt+k2xKoI2bdp W4lO/G3wyxKTEOtrJfuUuzCqGD58NCCU/QZk6qX2aYIYBT0VkajyPEpb8rBqow5Py06G wR1ubqvGm+roeBGpyomXfB9wcEaif8Ferj++hAoM+U9K3C4HOegs7LmKNwIchYXDFobk hHNhJn2+i448zDd4kW2WY88brDj1HcI2iHEljddTNp2f8Rfs96qHjCC7mAJEYdcE9SPr L6iw== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:dkim-signature; bh=+otDMNacRJyhVH7jbMZwmX4GACEl5hc9B8WUKsTX3lw=; b=dDQqbmts8rz1JncewLH5kH6x5HoCc13YxTnemqhNwCLGHV7NQX9nL47Qle75r9luok ewYiWuGKb5E/010+zMGG4kfitHJvIaVTbjnE1BVBeEVl1Xb++aBf39YqNGGpQtuKfn/U JaAeSOrZLWAeuj0DM9dRGg5u2yn7LzR8uo8/9sfhUMm8uyHZYxYyfybhptz54glEdndl z53y6/bYaqJZpXGJNL6Ep6E5eYkmBL8m+bBCcmtJgugsI0B8nABDBNxpwiX/S7mK/ilo Z7hRQcB6XG+wTODunrPhc8QoKwim+DCBoQuTTR5l9MKS9i0JQA2QjEzlTL+giiEV956o KBKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ffN8+aKr; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=Pr1NCBre; 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 i2si3333545ejj.114.2019.09.14.23.06.21; Sat, 14 Sep 2019 23:07:49 -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=ffN8+aKr; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector2-fb-onmicrosoft-com header.b=Pr1NCBre; 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 S1726476AbfIOA0C (ORCPT + 99 others); Sat, 14 Sep 2019 20:26:02 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:20166 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726190AbfIOA0C (ORCPT ); Sat, 14 Sep 2019 20:26:02 -0400 Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8F0PHYK005473; Sat, 14 Sep 2019 17:25:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=+otDMNacRJyhVH7jbMZwmX4GACEl5hc9B8WUKsTX3lw=; b=ffN8+aKrglCHOBu05LQVypo69/Qooh5fhBf2tKTVOvW13Yah5tfn19+wpVoUsnDrw/kl hzxeSJ0gy89gcLBmeKTxwWX4wm6m5317JZbAIHT4Z9UXrg62iAmDX6xxsn4SqYVnbart 19D34tLIBY1Hpb9GJzPvnLUaQoctxFcyrwY= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com with ESMTP id 2v0wb71xbm-7 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Sat, 14 Sep 2019 17:25:21 -0700 Received: from ash-exhub101.TheFacebook.com (2620:10d:c0a8:82::e) by ash-exhub204.TheFacebook.com (2620:10d:c0a8:83::4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sat, 14 Sep 2019 17:25:04 -0700 Received: from NAM05-BY2-obe.outbound.protection.outlook.com (100.104.31.183) by o365-in.thefacebook.com (100.104.35.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sat, 14 Sep 2019 17:24:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J3wSFSgi0UqmtieVx7dNZBDtsjGEVRiRl+1b4eLj0U8kC4bSEfD3yTnv2Cyjieir4/F5HvcH7pm97JckQAGZo2AVtabkcLtH71NyZXEUoTotX10SwuS0h6BI9XvhsTXXOa7GX6nbJ17s20nWk+UcJKJYeuJB/K236TvhRiVyhjmrs33qeQDuqo4btk7BMQLZNUj50Q2fU+uIE0IDl2LeTm7vhYW0aYUHW2tTCh2vp9Dj27mlXkOfYYIeQeT/2ZnCZv8Kum3mFWjYO9ZQDABkO3HJBP7ecUhtD+Dw88PN/R0Ux4RGd+3XlY99j+2Bpalds8MgrB++jdf2u2QVIAlW4g== 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=+otDMNacRJyhVH7jbMZwmX4GACEl5hc9B8WUKsTX3lw=; b=fi5lYnsp/p3gjoM/AV7GfJec6sdjj9EWE4UZ5AJR/p2ku0RO03FZ/KtCGZYBhBqJPI0N6EviC8XFk5hi7MWrpESYzDeSyZZRzOUU03rUUyL+Buf/s/er/kaQpri5L8n0j3YGWLtKZzLKFiLEkdACJgLWAcpSsA3SDHa6CpiCNnBuvAuaZb8X41PWQS8Gk+9tO0RfsFeLIXGNJ/PYRpg546go2Zrhm8yznu0SoedeyjZZl7MqsykPcK/RnaezRieBTMQ+5Hmdokethn0KyoSAWKEXh49/u/roiTEY2MVvACNUAbuGwVJVmbdyZGHTuFPOnetJ3XPNoZw48uNnVScO8g== 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=+otDMNacRJyhVH7jbMZwmX4GACEl5hc9B8WUKsTX3lw=; b=Pr1NCBrepKbiG7O+PbSCE2OWPrSmU5A5OeoTPIxqQIw0zdjmcoE/dmNtisvLxgleVqPBDmFAaIKuoMeMcV4UPZY0ZrlrK4oaXyMsmLR21yArPBR0ESBgSG+T7JsV5LuPRMI7oStcaL9aJT2gFvU831/aKqlukW6cHQ39MHojSdk= Received: from BYAPR15MB3384.namprd15.prod.outlook.com (20.179.60.27) by BYAPR15MB3303.namprd15.prod.outlook.com (20.179.59.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.23; Sun, 15 Sep 2019 00:24:39 +0000 Received: from BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::95ab:61a0:29f4:e07e]) by BYAPR15MB3384.namprd15.prod.outlook.com ([fe80::95ab:61a0:29f4:e07e%6]) with mapi id 15.20.2263.021; Sun, 15 Sep 2019 00:24:39 +0000 From: Yonghong Song To: KP Singh , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-security-module@vger.kernel.org" CC: Alexei Starovoitov , Daniel Borkmann , James Morris , Kees Cook , Thomas Garnier , "Michael Halcrow" , Paul Turner , Brendan Gregg , Jann Horn , Matthew Garrett , Christian Brauner , =?utf-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , Florent Revest , Martin Lau , Song Liu , "Serge E. Hallyn" , "Mauro Carvalho Chehab" , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , Stanislav Fomichev , "Quentin Monnet" , Andrey Ignatov , "Joe Stringer" Subject: Re: [RFC v1 13/14] krsi: Provide an example to read and log environment variables Thread-Topic: [RFC v1 13/14] krsi: Provide an example to read and log environment variables Thread-Index: AQHVZ87j1G7F0OMFS0SrMJxSXDJHOKcr6EgA Date: Sun, 15 Sep 2019 00:24:38 +0000 Message-ID: <840efccc-d875-20af-14ee-c436580629e5@fb.com> References: <20190910115527.5235-1-kpsingh@chromium.org> <20190910115527.5235-14-kpsingh@chromium.org> In-Reply-To: <20190910115527.5235-14-kpsingh@chromium.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR12CA0066.namprd12.prod.outlook.com (2603:10b6:300:103::28) To BYAPR15MB3384.namprd15.prod.outlook.com (2603:10b6:a03:112::27) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [2620:10d:c090:180::69e8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cfd4cc4d-1eb6-4781-e086-08d739731815 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BYAPR15MB3303; x-ms-traffictypediagnostic: BYAPR15MB3303: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1169; x-forefront-prvs: 01613DFDC8 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(136003)(39860400002)(346002)(376002)(189003)(199004)(14454004)(71200400001)(71190400001)(256004)(86362001)(8676002)(6116002)(81166006)(2501003)(81156014)(8936002)(229853002)(5024004)(2906002)(14444005)(31696002)(31686004)(476003)(11346002)(446003)(2201001)(6486002)(5660300002)(486006)(6436002)(53546011)(6506007)(386003)(66946007)(102836004)(66476007)(6246003)(66446008)(64756008)(66556008)(30864003)(2616005)(52116002)(76176011)(53936002)(36756003)(316002)(99286004)(4326008)(7736002)(305945005)(25786009)(110136005)(7416002)(54906003)(478600001)(6512007)(46003)(186003);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR15MB3303;H:BYAPR15MB3384.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: fb.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9O72LnhyHokuh99cjgnZpKGzBl3yd2YhiFN+WTTfVmV5BdOW6q2JQmRw05AzpxEk6WKI54kqCYNqdQQzou0Rv3FV9zqjw2Ghv4cHqKB+ubsuFFsSlFuNXBvT3rK7NbAK4DKMLkGPaVxKWIvBkNbjoaflHoe5yrF0T64sKqUgBQhYzpVIcOxE90RvcmJx1TVDg6lS8PVH+uo6IVIXLQOrRV/p0fWUr+aq8y8Q3t7e28uOJ/A6Ovmbe245hSB7NZUb1CiPCO2eeBGehreQtPzwnLIDllfa18/8RWSC6wD4cN9a4mCKxoSL/0JjJk8pQDVhgAk/BZLJl5XThUN0rqWN1M4e88uycxGE5iPx7/KIO2d7ueDJIjvRROajPsjvYBrQIiMH3bfbZ4nB9OtaCrmkuG5UFS9CoTXacd5t/3w/KPg= Content-Type: text/plain; charset="utf-8" Content-ID: <2F941584E27B2D4F91D572B4FDEFC46C@namprd15.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: cfd4cc4d-1eb6-4781-e086-08d739731815 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2019 00:24:38.8621 (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: 2KwA1KwQakT/impKTS0SwnBjkf0j1yujpKKx5e+yh+lwcQmDioIslRVIJGdQwN// X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR15MB3303 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-14_07:2019-09-11,2019-09-14 signatures=0 X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0 suspectscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 impostorscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1909150001 X-FB-Internal: deliver Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCk9uIDkvMTAvMTkgMTI6NTUgUE0sIEtQIFNpbmdoIHdyb3RlOg0KPiBGcm9tOiBLUCBTaW5n aCA8a3BzaW5naEBnb29nbGUuY29tPg0KPiANCj4gCSogIFRoZSBwcm9ncmFtIHRha2VzIHRoZSBu YW1lIG9mIGFuIGVudmlyb25tZW50IHZhcmlhYmxlIGFzIGFuDQo+IAkgICBhcmd1bWVudC4NCj4g CSogIEFuIGVCUEYgcHJvZ3JhbSBpcyBsb2FkZWQgYW5kIGF0dGFjaGVkIHRvIHRoZQ0KPiAJICAg cHJvY2Vzc19leGVjdXRpb24gaG9vay4NCj4gCSogIFRoZSBuYW1lIG9mIHRoZSBlbnZpcm9ubWVu dCB2YXJpYWJsZSBwYXNzZWQgaXMgdXBkYXRlZCBpbiBhDQo+IAkgICBlQlBGIHBlci1jcHUgbWFw Lg0KPiAJKiAgVGhlIGVCUEYgcHJvZ3JhbSB1c2VzIHRoZSBrcnNpX2dldF9lbnZfdmFyIGhlbHBl ciB0byBnZXQgdGhlDQo+IAkgICB0aGUgdmFsdWUgb2YgdGhpcyB2YXJpYWJsZSBhbmQgbG9ncyB0 aGUgcmVzdWx0IHRvIHRoZSBwZXJmDQo+IAkgICBldmVudHMgYnVmZmVyLg0KPiAJKiAgVGhlIHVz ZXItc3BhY2UgcHJvZ3JhbSBsaXN0ZW5zIHRvIHRoZSBwZXJmIGV2ZW50cyBhbmQgcHJpbnRzDQo+ IAkgICB0aGUgdmFsdWVzLg0KPiANCj4gRXhhbXBsZSBleGVjdXRpb246DQo+IA0KPiAJLi9rcnNp IExEX1BSRUxPQUQNCj4gDQo+IAlbcF9waWQ9MTIzXSBMRF9QUkVMT0FEIGlzIG5vdCBzZXQNCj4g CVtwX3BpZD00NTZdIExEX1BSRUxPQUQ9L2xpYi9iYWQuc28NCj4gCVtwX3BpZD03ODldI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