]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/thunderbolt.h
thunderbolt: Add support for preboot ACL
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 28 Mar 2018 12:31:23 +0000 (20:31 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Wed, 28 Mar 2018 17:44:47 +0000 (12:44 -0500)
commitafa11ff513d740d766d61cf705e02e3af953a578
treebf35ed7ceb9deb423930089c1c56df04718648f3
parent269f6defa6c72302c096c176c1b77b4f2a68f345
thunderbolt: Add support for preboot ACL

BugLink: http://bugs.launchpad.net/bugs/1730775
Preboot ACL is a mechanism that allows connecting Thunderbolt devices
boot time in more secure way than the legacy Thunderbolt boot support.
As with the legacy boot option, this also needs to be enabled from the
BIOS before booting is allowed. Difference to the legacy mode is that
the userspace software explicitly adds device UUIDs by sending a special
message to the ICM firmware. Only the devices listed in the boot ACL are
connected automatically during the boot. This works in both "user" and
"secure" security levels.

We implement this in Linux by exposing a new sysfs attribute (boot_acl)
below each Thunderbolt domain. The userspace software can then update
the full list as needed.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
(cherry picked from commit 9aaa3b8b4c56d24210acef37b7c800ca218c3d40 linux-next)
Signed-off-by: Anthony Wong <anthony.wong@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Documentation/ABI/testing/sysfs-bus-thunderbolt
drivers/thunderbolt/domain.c
drivers/thunderbolt/icm.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tb_msgs.h
include/linux/thunderbolt.h