Skip to content
Commit 1651d9e7 authored by Rajat Jain's avatar Rajat Jain Committed by Mika Westerberg
Browse files

thunderbolt: Add authorized value to the KOBJ_CHANGE uevent



For security reasons, 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=<val>" where <val>
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: default avatarRajat Jain <rajatja@google.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent c500bee1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment