mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
GDBusServer: Document that a GDBusAuthObserver is usually desirable
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Philip Withnall
parent
5e24d7cd14
commit
f5a01e0e4a
@@ -41,9 +41,11 @@
|
||||
*
|
||||
* ## Controlling Authentication # {#auth-observer}
|
||||
*
|
||||
* For example, if you only want to allow D-Bus connections from
|
||||
* processes owned by the same uid as the server, you would use a
|
||||
* signal handler like the following:
|
||||
* By default, a #GDBusServer or server-side #GDBusConnection will accept
|
||||
* connections from any successfully authenticated user (but not from
|
||||
* anonymous connections using the `ANONYMOUS` mechanism). If you only
|
||||
* want to allow D-Bus connections from processes owned by the same uid
|
||||
* as the server, you would use a signal handler like the following:
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* static gboolean
|
||||
|
Reference in New Issue
Block a user