registrybinary: registry file mode via GST_REGISTRY_MODE
authorRobert Rosengren <robertr@axis.com>
Mon, 10 May 2021 10:50:18 +0000 (12:50 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 5 Oct 2021 10:49:27 +0000 (10:49 +0000)
commit69b3b1d6bffff9061153cd71d92c301bf02cd445
tree79fb4cfb147a465ff1dc18c17b5b2dc8ec192241
parent0596da19666f23a611c9e123628c30392bd4f4f7
registrybinary: registry file mode via GST_REGISTRY_MODE

In an embedded system where all services run as seperate users it is
useful to have the gstreamer registry readable by all so it can be
re-used, in similar manner as a host system where one user have seperate
applications running but all share same registry.

To make this possible introducing GST_REGISTRY_MODE for adjusting the
changing mode of the registry binary when finishing up with the
temporary file (which has restricted access).

Fixes: #692
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/825>
subprojects/gstreamer/gst/gstregistrybinary.c