Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1447174rdb; Sat, 10 Feb 2024 02:28:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXu5FurIGGfjSnPphazhy0KjdOlOhqFmRV1AiN2HUUvwsEFJAFLdjEf/L17QXMNSkJqttZiy73FzrLxY+fDeLJCPX87u0A4f4Nt/qfBXg== X-Google-Smtp-Source: AGHT+IFv0Oh+Y47pS58g3tSYFUqvnc1GijctBZhLclIeTJTtbh1B+BsNAes5yMocN/nF3GPGMIM1 X-Received: by 2002:a92:c98c:0:b0:363:df37:59b1 with SMTP id y12-20020a92c98c000000b00363df3759b1mr2142978iln.0.1707560899228; Sat, 10 Feb 2024 02:28:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707560899; cv=pass; d=google.com; s=arc-20160816; b=KcK4pqzamPu6/EZIzpSgpoPeLCIPaou98IC6p/1Aw2qBF/n7RWo9KkRrbFiwRTq/vp N0Grbxl5jca2V8GeqQDp8MGqmf7tOVQPL9+CXmWdV/ThDNkrtl4DsZkkd16FTK86wlYp v3jnVUovOhFUzW3vouH5Ef2UBVen3fPgxJ5zDNYlIPW1ug40WGRHS+UiW/s3vT6y3YNs kuXvduwcbST3JoUxt5+ej2WWiLfAZa4CDrkwoHNvUbZ48Kwy4paPq7GxuczQfydxnRQm lH28HZ22vsBJskmLk++t+AHudMv7hJncuo3kBSCdPRH2B/AlCiCP5kUgbERmHUfaeKMV ONug== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qCLJcFrdfJZARowT3iMJiwpihy6L4vEnmgYzkXT94IQ=; fh=3IXsskNV72yRYyLdCggH08K0miyradz8DrgjMAd9Jp0=; b=MZ5TITPry9K6P3O+nwl7xmAWN6ir+o29iIbtyGo/cpbCNjf7GeHzY7BjJVsk16JKXp 8ASDTVteA1jx0o0yCTUN9cbu8g0k1EfFyvw7TDCOuOURAQjJSxxpd9siJCkNCgPTi4n+ WYaYkCVA5TLrZ1Q1Uy74ecj8T85rUfPogQrGwvasYlptTu+uML9PqkZjq6GbZKqVPPL4 uYL2IM5zxvM6E8YjLG7FIhC/PMzFi/djF7fyf4agkSyxNMh6RwmvfiTojFmxvUie5R1d RLXr2MPHg4qNIz3DjBXH0pj4oIMkFLzKYVv1J/he26z7jVni8iq02Sgoz9x7qcB4v+Om 6Ehw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ASHIYiDl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-60361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCWctH6Wqn5guqFH1KAewFF0oAccoqX0jHVvMwPc7OPbhyPNi5YYLDZD3u88WK1KeBei4ZYSNs1rpAQFfg4zAbVgmThJiGopUUdHi89Y+w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c13-20020a6566cd000000b005d8b30f48b6si3267827pgw.652.2024.02.10.02.28.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 02:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60361-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=pass header.i=@linuxfoundation.org header.s=korg header.b=ASHIYiDl; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-60361-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60361-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 5F19FB22ABE for ; Sat, 10 Feb 2024 10:28:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D483364DB; Sat, 10 Feb 2024 10:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ASHIYiDl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2AB6D539C; Sat, 10 Feb 2024 10:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707560882; cv=none; b=B9g69m5GUApwjcwELGH5OdLG36fnlVA4HV7DFnXeUlIx8gP5Mn3hwDvUhBaf+tnOPeghEVLZ8ko24o6afWA30p0YgZFASM85Hkk7cd22znOXntBkqu/BAkrviCIDxgmgdwggi9sfR4QFG4MkuUAbXn0sUbz+aKxNabENb7CZqRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707560882; c=relaxed/simple; bh=A+hSr2K87yVCazRNOYr09pB+t+4coVba0QUB+8jbQXQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cluXGvDzXupzn6rdOBjNzlgN0N9A5nFNd3EgGgqAmOZLHlkC23mAbUCgwXHlhiSUP/jtlqaPQqvSkF3fNa8X9Z8EoeItPZRyvMISSr2DLNLTdo6kZuCgyZDF4fVOw6PB6OQXPSF+GoAIYOEv/ijAqzAAj7ccKdcs9sRxecGrCOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ASHIYiDl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A42EC433F1; Sat, 10 Feb 2024 10:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707560881; bh=A+hSr2K87yVCazRNOYr09pB+t+4coVba0QUB+8jbQXQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ASHIYiDl93z5XptADsvR8tTQS2eUM/IAGTAsXXIPNl0Qt/W6oVMkK7zcdvuaMZ4Fm 4SeV+NUwIbTKflHlvXFzMKF5mKMo4xvvby+/wk7wdQXsGTTakE0OIY5A2G+6OW5wk7 y702u5mPEw+ohJOQD9OS6Mdk22aFUG0suzWQnky0= Date: Sat, 10 Feb 2024 10:27:58 +0000 From: Greg KH To: niko.mauno@vaisala.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, vesa.jaaskelainen@vaisala.com, geert@linux-m68k.org Subject: Re: [PATCH] usb: core: Kconfig: Improve USB authorization mode help Message-ID: <2024021043-nursing-unbridle-cea4@gregkh> References: <20240209142951.27195-1-niko.mauno@vaisala.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240209142951.27195-1-niko.mauno@vaisala.com> On Fri, Feb 09, 2024 at 04:29:51PM +0200, niko.mauno@vaisala.com wrote: > From: Niko Mauno > > Update the default USB device authorization mode help text so that the > meaning of the option and it's available values are described more > accurately. > > Signed-off-by: Niko Mauno > --- Shouldn't there be a "Reported-by:" line here to give proper credit for the developer who asked for this? > drivers/usb/core/Kconfig | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig > index f337aaea7604..4665df550d36 100644 > --- a/drivers/usb/core/Kconfig > +++ b/drivers/usb/core/Kconfig > @@ -126,10 +126,21 @@ config USB_DEFAULT_AUTHORIZATION_MODE > Select the default USB device authorization mode. Can be overridden > with usbcore.authorized_default command line or module parameter. > > - 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 > + This option allows you to choose whether USB devices that are > + connected to the system can be used by default, or if they are > + locked down. > + > + With value 0 all connected USB devices with the exception of root > + hub require user space authorization before they can be used. > + > + With value 1 (default) no user space authorization is required to > + use connected USB devices. > + > + With value 2 all connected USB devices with exception of internal > + USB devices require user space authorization before they can be > + used. Note that in this mode the differentiation between internal > + and external USB devices relies on ACPI, and on systems without > + ACPI selecting value 2 is analogous to selecting value 0. > > If the default value is too permissive but you are unsure which mode > to use, say 2. In looking this over, this last sentance really isn't a good suggestion, as it will turn people's machine into one that by default, doesn't accept external USB devices, which is probably NOT what they want at all, and is NOT how Linux has worked for the past 20+ years. So maybe a bit better clarification as what the normal default should be here? thanks, greg k-h