summaryrefslogtreecommitdiff
path: root/include/linux/thunderbolt.h
diff options
context:
space:
mode:
authorRajat Jain <rajatja@google.com>2021-07-30 16:53:04 -0700
committerMika Westerberg <mika.westerberg@linux.intel.com>2021-08-02 18:03:36 +0300
commit1651d9e7810e79500b4940122e192b8aaeb2d63c (patch)
treecd68a3f9bcf5e765b0ab6d2ad38f6482b8cf7c5e /include/linux/thunderbolt.h
parentc500bee1c5b2f1d59b1081ac879d73268ab0ff17 (diff)
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: Rajat Jain <rajatja@google.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux/thunderbolt.h')
0 files changed, 0 insertions, 0 deletions