Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp820688rdb; Fri, 9 Feb 2024 02:03:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1Re4j2JgxB0zpLYqdXLgrJdBeg5DSbzTOp0jgB8W4ix2A89A4geqAsxAVvilfFz/PktVS X-Received: by 2002:a05:6870:6109:b0:219:d6b6:d0e6 with SMTP id s9-20020a056870610900b00219d6b6d0e6mr1047664oae.30.1707473035676; Fri, 09 Feb 2024 02:03:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4Ityfs+tuYfnp/0SKnuCUpHOUH2FS10Je/1NTs8QqVtGM37YWgvgfG31f+IIuLP4bJhKx8QIbHBR2d0KNIccVRGdWQb45DYTPf4Hogw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id dq8-20020a056a020f8800b005ca4098bf5fsi1515179pgb.620.2024.02.09.02.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 02:03:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@vaisala.com header.s=selector1 header.b=vImKsyhY; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-59184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59184-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vaisala.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 91085B28240 for ; Fri, 9 Feb 2024 09:56:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B301467E86; Fri, 9 Feb 2024 09:55:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=vaisala.com header.i=@vaisala.com header.b="vImKsyhY" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2130.outbound.protection.outlook.com [40.107.21.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89CF7664CC; Fri, 9 Feb 2024 09:55:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.130 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707472548; cv=fail; b=UKDtBFisSKyYtHSj1z08yA/WpR3NEQ+7ud+jM8LkJqr5JmAiGccUC83WHXMShe2kTEM2UNPr4syOXoSFaTyLjqQfQz9xG2R6ioz2sSUTm8XIFYc/qHqsKMnBpYtCcufvuqFn3AKPSZcCjw7fy5DC0vces5PCg+mxYs/V/fLsMhY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707472548; c=relaxed/simple; bh=3yQGCLwFIonXvJgBuAFKRBsKCuGxIBNQcn/+QXlp8YU=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=QUurLdmyWComkiMskyqeMkWf/RyPjvMEtW7aGg5Azmitt8XXOl/mdcLAblIWdGdDmzxESyfTvDLtQR5fKT95AiSsorUfO5v1RyumP4ZRPJPjdtQccnvb+JGWZFFznmgj8haW5fkZB/NvvpDRUdbQy8Pdj0Kzmb0eSHzSr7rN1/Q= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vaisala.com; spf=pass smtp.mailfrom=vaisala.com; dkim=pass (2048-bit key) header.d=vaisala.com header.i=@vaisala.com header.b=vImKsyhY; arc=fail smtp.client-ip=40.107.21.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vaisala.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vaisala.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=euYR7cFEdXe6+7YEtEPoPkR7zob5PCkBdsbPiKXI5so6it5hwaDsDV+TaaPKibJkWy4zNMKX/pny0Mjio5IIHhis1Lbu2bd0IIdGmZLeh2iRmKifUHS82tu7x8KCiM7lEiBToFUfGuGIwjbsocxjZD9VS9UPm+WTPnFgwOQf0Wu3U2iEMajYMrXEW9RTEC2T5Xlgl3GD5weNBltoPIpP3nG8M+HyqckgueEZpNNnRwOzhP9MgghHQPv+9dEDC4TthkKKciiMCbNhlX28Z8jkOswIosiTsM6BzPiZY9m48DLirJ1/JH+5OBN9pQX9fGU1MwzBMahzZ+K5q51XU/rtsA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Pv0kjk2O6kI/rnTvn2aaW+dT+3choQclYzbCXho3JCg=; b=NwQimp5il1ZsaBJZDJ3r6CTdJgykv46OOI96KWKmXaANriyHhOityARAuBD8/r8awEH201fJbd83ACDB2vP/p55Cjsk+Vo3OLYhTYZJT26l248ZzOtfL9yiEaoDFTjAAH3UJDW254dtw0tJEDoc6TkwWx93XJPS6A9QhKSOy+oIf8rT8ghQooq32BghIBHF5TuvlORIiQB0xWdQCUwrORpPgDQfceTEmg60XmrA6WF8vOmFeqni8jmMvOOs42G0azkqxiYXFGJLMdcE9JmvTwpIqx8e8pLgCM8Nd1mJbH3xenx//jg+ihZuD/N7Bq0iDBgEfs+dhF++TXGIwB70FfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vaisala.com; dmarc=pass action=none header.from=vaisala.com; dkim=pass header.d=vaisala.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vaisala.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Pv0kjk2O6kI/rnTvn2aaW+dT+3choQclYzbCXho3JCg=; b=vImKsyhYqlRxhFy170YCkCOK2GcS1y0IhR8noO+1rE2tjajYnulRtFJep2Hcakh6njaViOlNxtNhhlZW0qshto1lUBhAsRovMlPaTLdKmLnyAoWGDbLoXfcP66kUg3m4KTAKulqwX7v5mOr2b7WcyQK8By4ErMA3qzCTwaUOPQgln2kT4zm7TbPGvbO965RzLAhLMO0UvKDynxRD9ER1KNitIkZ9RwFRFpUdHrymbUE0gQUGAx6yU1py4wet3YDs1nQyeiVvG0HXWu6GgYZw4+d0P1smJU+8w+ymT7Akx1tc+OyRDAAsJJD/G+AQf7tDBtltyvuS5Z9gZTiiGemAsQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vaisala.com; Received: from AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) by PR3PR06MB6970.eurprd06.prod.outlook.com (2603:10a6:102:87::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.27; Fri, 9 Feb 2024 09:55:42 +0000 Received: from AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::b5ae:8355:acaf:29e0]) by AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::b5ae:8355:acaf:29e0%4]) with mapi id 15.20.7270.025; Fri, 9 Feb 2024 09:55:42 +0000 Message-ID: <3fdd409f-25de-4a5e-875a-8b59a1a0c0cc@vaisala.com> Date: Fri, 9 Feb 2024 11:55:40 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] usb: core: Make default authorization mode configurable To: Geert Uytterhoeven Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, vesa.jaaskelainen@vaisala.com References: <20240105114956.30714-1-niko.mauno@vaisala.com> <20240105114956.30714-2-niko.mauno@vaisala.com> Content-Language: en-US From: Niko Mauno In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: GV3P280CA0046.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::17) To AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR06MB8447:EE_|PR3PR06MB6970:EE_ X-MS-Office365-Filtering-Correlation-Id: d7ee3309-f6a2-45ab-fe0c-08dc2955473e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UgvkU7vJ3cMzHMiFUL9op7G18ykIhaSeF4s/8v/1xU7LnFo0sPHwhRY9BzvVnH7AJr+APV8mJm8QP+AVchilz8ZSuqS9Ly6BEk0fmD7uLxZiYQ015R3F6ehoPPYDz7oU9CVVhJUNwYEV8cNvg5/4sdo+b+2huztywcR9gcRPlpcA/IHkk0iznnI3MbmVT/VuwTB4bdIU+nqN1KUeQCpZ741fkbSQZLjjvldg/FvwlrDetb9RoeFehvcN+G1T/VV6UxCHM5eU7jx0nseTOuNP0MVKAt7BjgEXETAAYLmrleczViSJrnbOA2g5ExabZG/XELIKt7IENazqDiux3F4QxdWw+aSl6PXIxE8b0Vqtio0AcMS4KBwPUVggWbZgnTV4ULz5cPiIHgN5mCsc6UIPkW5BfGPkzUAegjzA2z73agblDHAKYf195mblqBELzfuSmMjJF920CoN+XYAC2e0nwuox+JvnXffVKBVKqJfrx2qk4CX2Z3c55LLOt803sPQr4EznyHt3jGrzWQpb76MCjPGCFiYIDLS36nVwr/G6et31xEWIP7GhKk4p5w9RJeWy X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR06MB8447.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(346002)(396003)(366004)(39860400002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(6506007)(53546011)(6512007)(6486002)(478600001)(83380400001)(26005)(107886003)(5660300002)(44832011)(2906002)(2616005)(4744005)(66476007)(6916009)(316002)(66556008)(66946007)(8676002)(8936002)(4326008)(36756003)(38100700002)(31696002)(86362001)(41300700001)(31686004);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UHl6VUdKekNLblNzWHl2bkJXVUxsWjFHUk1UMytyaG8xb0J1eDRXMXJDenZo?= =?utf-8?B?MDBZM0QwM0ZJck1DeHZDb3h0N3NqSnJuaGNxc01ZR3Eya0dqN2YrbG9XdDg0?= =?utf-8?B?MXorSFNDdmhVS3luZHlFc2dNalhwUTRWaHpGSThaWWNEYUl4Yk9sUFZUUVBE?= =?utf-8?B?UFhzYTZSZmZLSDlGR2xYN0VMenRJVGY1MklFcXZYM0NNT0FyT3JHcFA0czlW?= =?utf-8?B?bDh3cFFJVDRVZStuL0o0dlF0elBEZVBSc3JEQS8zcFozOTJGWVl1aStYNlUy?= =?utf-8?B?RXordWhZSzJPMmlveHBNZjE0RDIySmdSZXRXMEpDbjExaDQzaDNsNncvY3lJ?= =?utf-8?B?Um8rUlNhZ3JvbVNGVU9QcC9CZHorS3FJTnN3eUdFbXlaZktqUDNLa3liM29M?= =?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Exchange-CrossTenant-Network-Message-Id: d7ee3309-f6a2-45ab-fe0c-08dc2955473e X-MS-Exchange-CrossTenant-AuthSource: AS4PR06MB8447.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2024 09:55:42.5723 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ewUqsjHHPd7QIYlUmlrCCyPVMXT/A6+HcoQTosijBHWpAk5N2gX1illJO4GwOPCTgEGrgZNpDntBYx01T3hEaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6970 On 6.2.2024 16.33, Geert Uytterhoeven wrote: > On Fri, Jan 5, 2024 at 12:51 PM wrote: .. >> + The available values have the following meanings: >> + 0 is unauthorized for all devices >> + 1 is authorized for all devices (default) >> + 2 is authorized for internal devices >> + >> + If the default value is too permissive but you are unsure which mode >> + to use, say 2. > > I'm sorry, but I don't have any clue about what to answer to this question. > Usually, you are (or are not) authorized to do _something_, but the > /something/ is not mentioned at all here. > Can you please make this a bit more clear? > Thanks! Thanks, submitted v3 which is hopefully better in this respect. -Niko