Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4237312ybx; Mon, 4 Nov 2019 09:57:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyORwzlh0uWII+HZTztpHKpjY3lO+D2GRcMvPttIWV2pHDvUZWfXGPJWArfVlPd5ySets/J X-Received: by 2002:a17:906:1611:: with SMTP id m17mr25859274ejd.281.1572890263382; Mon, 04 Nov 2019 09:57:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1572890263; cv=pass; d=google.com; s=arc-20160816; b=yikeDyWpmWYK7OTsRp7S5VnxA5GKCazU+aqj3ujUw8HmYJD5iVKdzMH58cizsX/QPB 7tTu9z+N0ewP3YYRGEuCTEg8tybz/KoTMAsaAoXt0giImVAdBfvqE1WQfKaaEhwj0JGF YRjWQsKQGL7ek1ywSTXI2QC41QlCnVv50vXRrmlnsagAMQY1duolLDt9MYwJ8VIKumwh RgmxV1JtLXBZz3a3fMUXVmJkTFImMpGjRnFZqkP5Lxc2uHoYmHUqi0UMQ/PxXiXwBVLA 0FqTsvH2vIN92Va4xyvyHJztJdXX+boQz5ck5fSNNnJtiZmTqOKT9S2shdzSky2bstZe Umuw== 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:to:from :dkim-signature; bh=rbIP3yQG6yvAX1J435qmHHVPNBHE9OW50cT31+CvZzc=; b=MK2QdN97EGUuagKu7T6X76XaybvjF3xw1Ch38loQkan5A0RHFXCo9qwwII8Z3Ho1eu oxd/8IBEioNcWuSW2O1wBdoZNGcOyFlPnZ8wNfiXo93tlGp/42Yr/Ki6QVNmKU8VNygw 3r4XycPYFCHXlEbLUKWK2jUcYHTkCPyUBZ3XtZOCKGcYs82S04J8zllb0tmYlKbaWbnX W95V8MDkGt+6cBg/vuZoHP5hf5tZuXh/MOAkoOAZBjXRDDtfsaHSQN3MPpe6lQDxSwaB jLKtSARG2uQVGoiNkI/q2t1VigkPB361ksR6uUY2Vf7t7arxGqHUrWdP/AH4sa5wofyg 1Vlg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=nwjcJbkv; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k35si8231779edb.84.2019.11.04.09.57.04; Mon, 04 Nov 2019 09:57:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=nwjcJbkv; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728012AbfKDR4r (ORCPT + 99 others); Mon, 4 Nov 2019 12:56:47 -0500 Received: from mga02.intel.com ([134.134.136.20]:20756 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727469AbfKDR4r (ORCPT ); Mon, 4 Nov 2019 12:56:47 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Nov 2019 09:56:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,267,1569308400"; d="scan'208";a="200096612" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga008.fm.intel.com with ESMTP; 04 Nov 2019 09:56:45 -0800 Received: from orsmsx156.amr.corp.intel.com (10.22.240.22) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 4 Nov 2019 09:56:45 -0800 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX156.amr.corp.intel.com (10.22.240.22) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 4 Nov 2019 09:56:44 -0800 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.58) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 4 Nov 2019 09:56:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yz/82861LYK7E1hWcKPLKO90wT4qijV5TsyOaBAYt3ElaNaYp+a55QZ8rQCDF5dXrh8eIrXpKwqmVS+WHH3HDBHYwgqui6SuPi7j28BvWtxG+duoxb55WqqLiPwwERL7uPTKg5FFL9taDVDZabX9nnFtk8GyJpKwWQvVq2yZxi5pvYLEXcPfGrkZtgTITUK+hzMWkqWWtI+r/t884K+92mmJKcBgLyEZcMsneGCS1UQjaXvHFkp8cvoG6cYm0j+VWrLiE2mTqxmU4j1kjJLKgxNN0rBc8qCo07uHt6kola4s3OqVpp3y5y9Iz5Jm22yj5ZlaDbrhQJLxu9NyuMQXKg== 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=rbIP3yQG6yvAX1J435qmHHVPNBHE9OW50cT31+CvZzc=; b=f8pNDOqhdrOneNvIPV6TC6yj4WSRXT9Dk1FCVvVpWo8IRQ537Xn+Ay4Ltc3gTl5qx3GcFWE959Q2n87KjTTUzYTz76TToBIpxbGoQMDKd4zUWKtI8gTK+XGkX9/Fw5nYhF+/iLYNsUB0U1EMorhhYZ+vY8LwA322n9IB9M9oThA1mIu2QX03RGeFM5MdvkICccCrj6BZK3sDnosKbt2/Kxti2Z0m1LRXQCBBTySJR/KQpZ+9bM+/a+2QSTFYj6doCHuyo19kyWG6ISl+/hCqi1NYdSkQH9mIgcHkeAbsXFfYFLspTyiJ/b7A0MCIVt6zXP7FpkimAXWI0Nw6MRwcAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rbIP3yQG6yvAX1J435qmHHVPNBHE9OW50cT31+CvZzc=; b=nwjcJbkvyEPddrlFux7+GAgBwW6/vrpEScPSblLRBfLNnpMu+qywyt/C6KaROb7MUPIp5ex7fJlRGjkisoLNHzeuy9utQOu8cGDPoAPax3i3Fs9EFD2C/GwZkK1qo6wDGxG4DfJFfqtFLDv4E89DxVaPeCajOqP0KRbtX8hCaU0= Received: from CY4PR1101MB2262.namprd11.prod.outlook.com (10.172.76.7) by CY4PR1101MB2328.namprd11.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2408.24; Mon, 4 Nov 2019 17:56:42 +0000 Received: from CY4PR1101MB2262.namprd11.prod.outlook.com ([fe80::c143:8007:1ec5:fdba]) by CY4PR1101MB2262.namprd11.prod.outlook.com ([fe80::c143:8007:1ec5:fdba%7]) with mapi id 15.20.2408.024; Mon, 4 Nov 2019 17:56:42 +0000 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ] mesh: Add authorization checks for Manager iface methods Thread-Topic: [PATCH BlueZ] mesh: Add authorization checks for Manager iface methods Thread-Index: AQHVjus3cSyG2ExHGEi9OvkKEt93L6d7VJaA Date: Mon, 4 Nov 2019 17:56:42 +0000 Message-ID: <2a97ac8591a45895a847d0650310b36803fe35a9.camel@intel.com> References: <20191030062749.14343-1-inga.stotland@intel.com> In-Reply-To: <20191030062749.14343-1-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=brian.gix@intel.com; x-originating-ip: [192.55.54.40] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 425f6643-afc5-4a37-549e-08d7615059a1 x-ms-traffictypediagnostic: CY4PR1101MB2328: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 0211965D06 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(376002)(346002)(366004)(136003)(199004)(189003)(36756003)(110136005)(316002)(2906002)(305945005)(8936002)(14454004)(81156014)(81166006)(8676002)(478600001)(66946007)(66556008)(66446008)(64756008)(76116006)(91956017)(66476007)(4001150100001)(7736002)(25786009)(99286004)(6636002)(118296001)(26005)(2501003)(66066001)(86362001)(6436002)(6506007)(102836004)(76176011)(6246003)(71190400001)(71200400001)(446003)(11346002)(6512007)(14444005)(5024004)(186003)(256004)(486006)(476003)(2616005)(6486002)(229853002)(5660300002)(3846002)(6116002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR1101MB2328;H:CY4PR1101MB2262.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SkPfdMHzry0xEl21pn44c4ld8rvzD6GjeGZjJDp8ds2F9C9AouKy8SFErcD8y0dyZC3VBo0s20WwcMVVQ+q7x0TEdv16MbUpUHpisv8/ZB9bCCOnYRWe+svEWwLWC2mpbmOGsr1nCvO4RhAgTbhJ6SL1PJE4yX3dc4SPenJrKm5uxjbAV1bQoOxLN6WKMa2qzvUNIlCmE/gyHdjwgPIBe8hzHpDPvdSxO/mP9HIDYaMEph+QYL4xVKxUwrOyJwHgB/6rSjAzGmshgak44bkBQGi9rYJ7mJdmvd7GA394KksmuE34eGWQgBP5R/jSVHqKo/XuN+7rRmIKU5G60K0FR9F3m86d8mbJdOIbV7US8BfdRGBAWtFA+/VhScDd81voYHzPMzTj/8byR/8GjzqAsKIJIq1+AaA36uDwrAhrPMS96Y1Y+f4VLfjWkKJMYife Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 425f6643-afc5-4a37-549e-08d7615059a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2019 17:56:42.3478 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 0uShMZrGklx6VF4yEtwh1kOZ6ZahHRza9KMXH5jC6+LMcDlB5lfIvn95MrydSFcQ8SX/eN9RmuABrLSJYKuOyQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2328 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QXBwbGllZA0KDQpPbi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