Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1699069pxy; Mon, 2 Aug 2021 08:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoVKQ4xMzwAFSA2cy4NsR9fzdKy5yQekJZIz8nYynEdfpvSZpLEVkRMfiqb38+zVeLKDPs X-Received: by 2002:a92:dd04:: with SMTP id n4mr1836100ilm.49.1627916959955; Mon, 02 Aug 2021 08:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627916959; cv=none; d=google.com; s=arc-20160816; b=GljtkwaOK4yp2oGbaEx5qig3eDqJgCd4MM0uXF8pxU5F6Hw8eDaCNg3xLi7SxGMOUw yFh0kWTRL/QRro3Q5IRX957/pWWsGvGNVyCSd6mePbEnnMP1ZOyr7XiKo7zW0RCKaHWd +XqXZj0O6wAH7yqXvF+0NWblUnSIntSAsLlGm4LNG6r533YJnRos3d9AtZ8x6DcLjmup KFSWCVTxTJMRaKV09dpHO4exCBeiWjhPj9r4OjBwCYGXQT8pLYfaq/M2Lld+PzWkhZ8C AOsQ8HHW8bhrP3477TLNDEck8AJb9CjlMJukwMXhf90KlvH1hQcVz27C2qriekrDfyo+ 34zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=//lcMQPFJWQVGDQLkZTxTIWFKZVef9Lsqu7k39cdel4=; b=j/oUsZgKuWvHZ9IYi8s/sSLUAUcQZiAjaOYuSlzH1rDDV2UVGlKwvV7kANv+U14eWa G9NSKLkTDMln4Gbrn4tY+f2JC9zX/p3FSrMQVdw2inB3r7Sf9u8GSIE11xTDUusyT+74 6cQwi04Dyt9kyqfnvuJgF1L06tNJ+xcMHd0cwDb9BXa7fIBF1UKJZgv5m4aQ1ZMArnVq UOJpEEzng4Y70smEXV0qeRqYEQqmCpuNmhkWhBib8kps+7ydnCEKpUQ8iEBpEsLzwtsh GZ+AF6FnNuykFv4UL/QlxD1vLJo0ZOskO+8ExEenbPKfUaSLuUyxKRzjfT9/0pubm3gV QAYA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si5178249ior.60.2021.08.02.08.09.08; Mon, 02 Aug 2021 08:09:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234834AbhHBPH6 (ORCPT + 99 others); Mon, 2 Aug 2021 11:07:58 -0400 Received: from mga01.intel.com ([192.55.52.88]:35026 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234755AbhHBPHf (ORCPT ); Mon, 2 Aug 2021 11:07:35 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="235401798" X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="235401798" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 08:07:19 -0700 X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="520597918" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 08:07:16 -0700 Received: by lahna (sSMTP sendmail emulation); Mon, 02 Aug 2021 18:07:14 +0300 Date: Mon, 2 Aug 2021 18:07:14 +0300 From: Mika Westerberg To: Rajat Jain Cc: Andreas Noever , Michael Jamet , Yehezkel Bernat , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, rajatxjain@gmail.com Subject: Re: [PATCH v3] thunderbolt: For dev authorization changes, include the actual event in udev change notification Message-ID: References: <20210730235304.3179882-1-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210730235304.3179882-1-rajatja@google.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rajat, On Fri, Jul 30, 2021 at 04:53:04PM -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 I did some tiny changes to the title, commit message and the comment and applied to thunderbolt.git/next, thanks!