]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thunderbolt: Correct access permissions for active NVM contents
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 29 Jun 2017 11:19:50 +0000 (14:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 13:55:08 +0000 (15:55 +0200)
commit800161bd0209a8db77f66af283c379ff8d58d88d
treebf8ed2c9a581723f5879443fd0b35331649a24fe
parent6463a4571ceefc43908df4b016d8d5d8b8e85357
thunderbolt: Correct access permissions for active NVM contents

Firmware upgrade tools that decide which NVM image should be uploaded to
the Thunderbolt controller need to access active parts of the NVM even
if they are not run as root. The information in active NVM is not
considered security critical so we can use the default permissions set
by the NVMem framework.

Writing the NVM image is still left as root only operation.

While there mark the active NVM as read-only in the filesystem.

Reported-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c