Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1942132pxv; Fri, 23 Jul 2021 23:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+PMrb+LEZOH1iVkOlUaDlRsmxOliwhPn/FceL6+unXNXixaaveQ79gqZo0dwF0z6zDGqz X-Received: by 2002:a92:dc4f:: with SMTP id x15mr5907010ilq.64.1627109390837; Fri, 23 Jul 2021 23:49:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627109390; cv=none; d=google.com; s=arc-20160816; b=I1ntdDt7ibh5wTqvKBfigiMfCwPyl8bMryByNa3p8+Z8OYQOY3+SC7SLPguO1PwyJR 600OwRUsa8YqM+JTVfpBYbDHH/0Wiznd+a/CfPr9XfjuTnwe6Wn6UR9KsTiLCzE2Npmu gQOKSUHrtVird9FZEABK5iW9Zc+6glrNegO7oU9cAUdGNAC1VeGqiQT0mhRarCgXOF+E cEvj1O+lf8BwFXfGCOS4XQ3apQUqtv5AjJx7jg1+QFK8rAVPXE96BqyWsPkUgK2t+Lvl y7zRKAQjUDFR0ihsKzfcjHeofJl1zBVynWgU1wfW/DtYrwT4TMe0YTPgJwffnZBgsUoc 6lyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lOX3KtLHus27ZYKqwRNzsWoKDA3+k0hs0JUr67TzWJY=; b=YgKGm65c+8Bxl/Gmu3lesVg3F5SH7lsfDWVbZtTqzqLhVEYpHXFsVlnJgkxhiCNSDt SUfXg81UiDhm/+2ka4ImAUM3JsXcDVEfTmGZRnC8Ak53c3ksDC0mwXEUWq9Ta0lz1lfd BO3rajls4HHMHm3RtwNJe1SIc7WXo1EmrE/rdinBfLw/pkkDdMG6uM7J2Q+jbq4KLsfX rk8PvtGmvmzHtaD/f64GcdlQQq39XIq3ebv3NqO1k7ImzGO/4gh7poP4bxeHq99c/HqD FdsKrfzm1d+WcbCXtM1DmRp1KtsbjxA4AbQRtQL4iTx7HcQ0dDbWdx3w0lK48/Ln1X/w MUsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si28487261ioq.37.2021.07.23.23.49.39; Fri, 23 Jul 2021 23:49:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234102AbhGXGIW (ORCPT + 99 others); Sat, 24 Jul 2021 02:08:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:50160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229926AbhGXGIV (ORCPT ); Sat, 24 Jul 2021 02:08:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23D8F60EAF; Sat, 24 Jul 2021 06:48:51 +0000 (UTC) Date: Sat, 24 Jul 2021 08:48:48 +0200 From: Greg KH To: Rajat Jain Cc: Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.or, rajatxjain@gmail.com Subject: Re: [PATCH v2] thunderbolt: For dev authorization changes, include the actual event in udev change notification Message-ID: References: <20210724004043.2075819-1-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210724004043.2075819-1-rajatja@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 23, 2021 at 05:40:43PM -0700, Rajat Jain wrote: > For security, we would like to monitor and track when the thunderbolt > devices are authorized and deauthorized (i.e. when the thunderbolt sysfs > "authorized" attribute changes). Currently the userspace gets a udev > change notification when there is a change, but the state may have > changed (again) by the time we look at the authorized attribute in > sysfs. So an authorization event may go unnoticed. Thus make it easier > by informing the actual change (new value of authorized attribute) in > the udev change notification. > > The change is included as a key value "authorized=" where > is the new value of sysfs attribute "authorized", and is described at > Documentation/ABI/testing/sysfs-bus-thunderbolt under > /sys/bus/thunderbolt/devices/.../authorized > > Signed-off-by: Rajat Jain > --- > drivers/thunderbolt/switch.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot