Commit graph

12 commits

Author SHA1 Message Date
Christian Kellner
05f2c5ef7c thunderbolt: react to security level changes
Listen for security level changes, which in theory should not really
happen at all with the exception that on hardware where force power
is not support and boltd has not yet seen the thunderbolt controller
because it was powered down. Then we should get an initial change
from 'unknown' to the real level. Handle it in the same way that
as if boltd was restarted, i.e. the dbus name owner changed
2019-01-30 13:54:14 +00:00
Christian Kellner
b9136fd468 thunderbolt: specific message for unknown security
If bolt cannot determine the security level, which in theory should
never happen[1] the standard no-thunderbolt message seems not
entirely appropriate. Instead show a different message that is more
tailored to this unusual case.

[1] The following (unlikely) reasons would invoke such a scenario:
   - new security level not supported by boltd
   - old hardware with not force-power support and the thunderbolt
     controller has not yet been powered up
2019-01-30 13:54:14 +00:00
Christian Kellner
31a77ad060 thunderbolt: plug leak when name owner changes
Should not happen very often in the real world, but ever time the
name owner changed (i.e. boltd was restarted) the name_owner
variable was leaked.
2019-01-30 13:54:14 +00:00
Christian Kellner
06894e020a thunderbolt: fix double free in bolt client
In the async version of the client creation, i.e. when a new client
is created via bolt_client_new_async and an error happens it will be
passed to g_task_return_error which takes ownership of it but the very
same error will also be free'd via g_autoptr; remove the latter.

This is a port of bolt commit e96f8bd47587b167ae46c8ac9347003f69f931dd
2019-01-08 17:29:05 +01:00
Robert Ancell
65cb7e98d1 thunderbolt: Fix compile warning 2018-11-06 11:39:48 +13:00
Michael Catanzaro
9b32898cee thunderbolt: Fix build
Providing autocleanups for types you don't own is not a good idea, since
it breaks when upstream adds those autocleanups.
2018-05-16 13:01:12 -05:00
Benjamin Berg
c2f601a9d4 Move common panel code from shell/ to panel/common
This creates a new static library called libwidget which the shell links
against.
2018-04-17 15:26:59 +02:00
Georges Basile Stavracas Neto
958bb8fe6b thunderbolt: Fix coding style
Not everything was fixed, but why bother.
2018-04-14 19:26:12 -03:00
Piotr Drąg
8d2fb2199e thunderbolt: fix grammar in a translatable string 2018-04-13 18:54:57 +02:00
Piotr Drąg
da0172274f thunderbolt: add a translator comment to the .desktop file 2018-04-13 18:51:53 +02:00
Christian Kellner
25a302ae98 thunderbolt: move to the 'Devices' page
The 'Devices' page is a fitting place for the thunderbolt, being
an IO technology. It is expected that people that need to go to
that page will be sent there via a gnome-shell notification, so
there is no need for it to be on the main page.
Ok'ed by the design team (jimmac).
2018-04-13 16:03:21 +02:00
Christian Kellner
47f241b10c thunderbolt: new panel for device management
Thunderbolt devices need to be approved before they can be used.
This is done via the boltd system daemon and gnome-shell. The new
panel enables the user to manage thunderbolt devices, i.e.:

 - forget devices that have previously been authorized
 - authorize currently unauthorize devices

Additionally authorization of devices an be temporarily disabled
to ensure no evil device will gain access to the computers
resources.

File starting with "bolt-" are copied from bolt's source tree
and currently correspond to the bolt upstream commit with the id
f22b1cd6104bdc2b33a95d9896b50f29a141b8d8
They can be updated from bolt via the update-from-bolt.sh script.
2018-04-13 15:08:16 +02:00