Peter Hutterer
b6a8f67764
module-portal: use spa_atoi32 for safer PID parsing
2021-07-30 07:24:24 +00:00
Peter Hutterer
82e427745d
doc: structure the portal documentation a bit better
2021-07-30 07:24:24 +00:00
Pauli Virtanen
2b515b5e50
dbus: keep a ref to DBusConnection if reconnecting is not handled
...
Several places in the code don't handle reconnecting DBus connections
yet. In those cases, a ref to the DBusConnection handle needs to be
kept, so that there's no use-after-free if it gets freed by spa_dbus
if the connection is broken.
Adjust spa_dbus so that others keeping additional refs is safe.
2021-06-26 16:11:40 +03:00
Peter Hutterer
f181232a61
doc: add the documentation infrastructure for pipewire modules
...
All empty pages for now but at least this makes them show up in the
documentation.
2021-06-25 08:42:24 +00:00
Stefano Ragni
243d534476
dbus: fix bus type reported in logs
2021-06-25 08:26:00 +00:00
Peter Hutterer
e0471c6757
pipewire: allow NULL pointers in pw_properties_free()
...
Just like the real free() we should just ignore a NULL pointer, makes the
caller code easier for those instances where properties are optional.
Patch generated with concinelle with a few manual fixes.
2021-06-02 10:56:46 +00:00
James Henstridge
733ad43d3f
module-portal: direct GetConnectionUnixProcessID call to /org/freedesktop/DBus
...
The D-Bus specification says that the message bus accepts method calls
on other object paths for backwards compatibility, and may reject
security sensitive calls on unexpected object paths:
https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-messages
2021-05-27 11:24:04 +00:00
Peter Hutterer
522f87d5ea
treewide: replace strcmp() != 0 with !spa_streq
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Peter Hutterer
7697ed0757
treewide: replace strcmp() == 0 with spa_streq()
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Wim Taymans
bdea557fb1
module-portal: improve error message
...
Pass some error messages and errno around to give a better error
message (instead of ENOMEM) when the connection with dbus fails.
2021-03-11 15:18:28 +01:00
George Kiagiadakis
0ce6de8fdf
src: change license (LGPL -> MIT) on left-over LGPL files
...
Discussed with and approved by Wim
2021-02-10 11:52:09 +00:00
Wim Taymans
be107317f5
Silence some dbus errors
...
Log info when a service is not running and disable it.
2021-01-14 17:11:42 +01:00
Wim Taymans
3162465f6f
portal: error->warn when the portal pid is unknown
2021-01-14 15:07:42 +01:00
Wim Taymans
3d93b2492c
portal: improve error message
2020-11-29 16:51:33 +01:00
Wim Taymans
a6c35d1df4
module-portal: don't leak dbus error
2020-11-09 16:50:47 +01:00
Wim Taymans
91d4806611
permission: add some helpers
...
Add PW_PERM_ALL as a shortcut for all permissions
Add PW_PERMISSION_FORMAT and PW_PERMISSION_ARGS to nicely format
permissions.
2020-07-30 16:26:29 +02:00
Wim Taymans
5731447357
add portal module again
...
This access module now only checks if the connection is comming
from the portal and tags the ACCESS property with portal in that
case. It will no longer do permission store checks, that's for
the session manager.
2020-07-17 14:12:10 +02:00
Wim Taymans
a295901329
Move portal module to session manager
2020-07-16 17:54:18 +02:00
Wim Taymans
7d56b78bce
remove some unused fields
2020-07-16 17:47:30 +02:00
Wim Taymans
51ae60b0c4
portal: fix small leak
2020-06-05 15:49:39 +02:00
Wim Taymans
9e6a047788
portal: add portal module again
...
Add this again for now until we can integrate this into the
session manager somehow.
2020-05-18 16:30:09 +02:00