D-Bus 1.14.8
dbus-credentials.c
1/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
2/* dbus-credentials.c Credentials provable through authentication
3 *
4 * Copyright (C) 2007 Red Hat Inc.
5 *
6 * Licensed under the Academic Free License version 2.1
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 */
23#include <config.h>
24#include <stdlib.h>
25#include <string.h>
26#include "dbus-credentials.h"
27#include "dbus-internals.h"
28
50 int refcount;
51 dbus_uid_t unix_uid;
52 dbus_gid_t *unix_gids;
53 size_t n_unix_gids;
54 dbus_pid_t pid;
55#ifdef HAVE_PDPLINUX
56 //parsec_caps_t unix_parsec_caps;
57 BusPDPLinuxID* credential_parsecid;
58#endif
59 char *windows_sid;
60 char *linux_security_label;
61 void *adt_audit_data;
62 dbus_int32_t adt_audit_data_size;
63};
64
79{
80 DBusCredentials *creds;
81
82 creds = dbus_new (DBusCredentials, 1);
83 if (creds == NULL)
84 return NULL;
85
86 creds->refcount = 1;
87 creds->unix_uid = DBUS_UID_UNSET;
88 creds->unix_gids = NULL;
89 creds->n_unix_gids = 0;
90 creds->pid = DBUS_PID_UNSET;
91#ifdef HAVE_PDPLINUX
92 creds->credential_parsecid = NULL;
93#endif
94 creds->windows_sid = NULL;
95 creds->linux_security_label = NULL;
96 creds->adt_audit_data = NULL;
97 creds->adt_audit_data_size = 0;
98
99 return creds;
100}
101
108{
109 DBusCredentials *creds;
110
111 creds = _dbus_credentials_new ();
112 if (creds == NULL)
113 return NULL;
114
116 {
118 return NULL;
119 }
120
121 return creds;
122}
123
129void
131{
132 _dbus_assert (credentials->refcount > 0);
133 credentials->refcount += 1;
134}
135
141void
143{
144 _dbus_assert (credentials->refcount > 0);
145
146 credentials->refcount -= 1;
147 if (credentials->refcount == 0)
148 {
149 dbus_free (credentials->unix_gids);
150 dbus_free (credentials->windows_sid);
151 dbus_free (credentials->linux_security_label);
152 dbus_free (credentials->adt_audit_data);
153#ifdef HAVE_PDPLINUX
154 if (credentials->credential_parsecid) dbus_free(credentials->credential_parsecid);
155 credentials->credential_parsecid=NULL;
156#endif
157 dbus_free (credentials);
158 }
159}
160
170 dbus_pid_t pid)
171{
172
173#ifdef HAVE_PDPLINUX
174 _dbus_verbose("***** Add PID to credentials (%p)! %ld\n",credentials,pid);
175#endif
176 credentials->pid = pid;
177 return TRUE;
178}
179
189 dbus_uid_t uid)
190{
191 credentials->unix_uid = uid;
192 return TRUE;
193
194}
195
196static int
197cmp_gidp (const void *a_, const void *b_)
198{
199 const dbus_gid_t *a = a_;
200 const dbus_gid_t *b = b_;
201
202 if (*a < *b)
203 return -1;
204
205 if (*a > *b)
206 return 1;
207
208 return 0;
209}
210
219void
221 dbus_gid_t *gids,
222 size_t n_gids)
223{
224 /* So we can compare arrays via a simple memcmp */
225 qsort (gids, n_gids, sizeof (dbus_gid_t), cmp_gidp);
226
227 dbus_free (credentials->unix_gids);
228 credentials->unix_gids = gids;
229 credentials->n_unix_gids = n_gids;
230}
231
241 const dbus_gid_t **gids,
242 size_t *n_gids)
243{
244 if (gids != NULL)
245 *gids = credentials->unix_gids;
246
247 if (n_gids != NULL)
248 *n_gids = credentials->n_unix_gids;
249
250 return (credentials->unix_gids != NULL);
251}
252
262 const char *windows_sid)
263{
264 char *copy;
265
266 copy = _dbus_strdup (windows_sid);
267 if (copy == NULL)
268 return FALSE;
269
270 dbus_free (credentials->windows_sid);
271 credentials->windows_sid = copy;
272
273 return TRUE;
274}
275
286 const char *label)
287{
288 char *copy;
289
290 copy = _dbus_strdup (label);
291 if (copy == NULL)
292 return FALSE;
293
294 dbus_free (credentials->linux_security_label);
295 credentials->linux_security_label = copy;
296
297 return TRUE;
298}
299
310 void *audit_data,
311 dbus_int32_t size)
312{
313 void *copy;
314 copy = _dbus_memdup (audit_data, size);
315 if (copy == NULL)
316 return FALSE;
317
318 dbus_free (credentials->adt_audit_data);
319 credentials->adt_audit_data = copy;
320 credentials->adt_audit_data_size = size;
321
322 return TRUE;
323}
324
334 DBusCredentialType type)
335{
336 switch (type)
337 {
338 case DBUS_CREDENTIAL_UNIX_PROCESS_ID:
339 return credentials->pid != DBUS_PID_UNSET;
340 case DBUS_CREDENTIAL_UNIX_USER_ID:
341 return credentials->unix_uid != DBUS_UID_UNSET;
342 case DBUS_CREDENTIAL_UNIX_GROUP_IDS:
343 return credentials->unix_gids != NULL;
344 case DBUS_CREDENTIAL_WINDOWS_SID:
345 return credentials->windows_sid != NULL;
346 case DBUS_CREDENTIAL_LINUX_SECURITY_LABEL:
347 return credentials->linux_security_label != NULL;
348 case DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID:
349 return credentials->adt_audit_data != NULL;
350#ifdef HAVE_PDPLINUX
351 case DBUS_CREDENTIAL_UNIX_PARSEC:
352 return credentials->credential_parsecid != NULL;
353#endif
354 default:
355 _dbus_assert_not_reached ("Unknown credential enum value");
356 return FALSE;
357 }
358}
359
369{
370 return credentials->pid;
371}
372
382{
383 return credentials->unix_uid;
384}
385
393const char*
395{
396 return credentials->windows_sid;
397}
398
406const char *
408{
409 return credentials->linux_security_label;
410}
411
419void *
421{
422 return credentials->adt_audit_data;
423}
424
432dbus_int32_t
434{
435 return credentials->adt_audit_data_size;
436}
437
448 DBusCredentials *possible_subset)
449{
450 return
451 (possible_subset->pid == DBUS_PID_UNSET ||
452 possible_subset->pid == credentials->pid) &&
453#ifdef HAVE_PDPLINUX
454 (possible_subset->credential_parsecid == NULL ||
455 (credentials->credential_parsecid && possible_subset->credential_parsecid &&
456 credentials->credential_parsecid->sz_pdplinux_context==possible_subset->credential_parsecid->sz_pdplinux_context &&
457 (0==memcmp(possible_subset->credential_parsecid,credentials->credential_parsecid,
458 sizeof(*(credentials->credential_parsecid))+credentials->credential_parsecid->sz_pdplinux_context))) ) &&
459#endif
460 (possible_subset->unix_uid == DBUS_UID_UNSET ||
461 possible_subset->unix_uid == credentials->unix_uid) &&
462 (possible_subset->unix_gids == NULL ||
463 (possible_subset->n_unix_gids == credentials->n_unix_gids &&
464 memcmp (possible_subset->unix_gids, credentials->unix_gids,
465 sizeof (dbus_gid_t) * credentials->n_unix_gids) == 0)) &&
466 (possible_subset->windows_sid == NULL ||
467 (credentials->windows_sid && strcmp (possible_subset->windows_sid,
468 credentials->windows_sid) == 0)) &&
469 (possible_subset->linux_security_label == NULL ||
470 (credentials->linux_security_label != NULL &&
471 strcmp (possible_subset->linux_security_label,
472 credentials->linux_security_label) == 0)) &&
473 (possible_subset->adt_audit_data == NULL ||
474 (credentials->adt_audit_data && memcmp (possible_subset->adt_audit_data,
475 credentials->adt_audit_data,
476 credentials->adt_audit_data_size) == 0));
477}
478
487{
488 return
489 credentials->pid == DBUS_PID_UNSET &&
490#ifdef HAVE_PDPLINUX
491 (credentials->credential_parsecid== NULL) &&
492#endif
493 credentials->unix_uid == DBUS_UID_UNSET &&
494 credentials->unix_gids == NULL &&
495 credentials->n_unix_gids == 0 &&
496 credentials->windows_sid == NULL &&
497 credentials->linux_security_label == NULL &&
498 credentials->adt_audit_data == NULL;
499}
500
509{
510 return
511 credentials->unix_uid == DBUS_UID_UNSET &&
512 credentials->windows_sid == NULL;
513}
514
525 DBusCredentials *other_credentials)
526{
527 return
529 DBUS_CREDENTIAL_UNIX_PROCESS_ID,
530 other_credentials) &&
532 DBUS_CREDENTIAL_UNIX_USER_ID,
533 other_credentials) &&
535 DBUS_CREDENTIAL_UNIX_GROUP_IDS,
536 other_credentials) &&
538 DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID,
539 other_credentials) &&
541 DBUS_CREDENTIAL_LINUX_SECURITY_LABEL,
542 other_credentials) &&
544 DBUS_CREDENTIAL_WINDOWS_SID,
545 other_credentials)
546#ifdef HAVE_PDPLINUX
547 && _dbus_credentials_add_credential (credentials,
548 DBUS_CREDENTIAL_UNIX_PARSEC,
549 other_credentials);
550#else
551 ;
552#endif
553
554}
555
570 DBusCredentialType which,
571 DBusCredentials *other_credentials)
572{
573 if (which == DBUS_CREDENTIAL_UNIX_PROCESS_ID &&
574 other_credentials->pid != DBUS_PID_UNSET)
575 {
576 if (!_dbus_credentials_add_pid (credentials, other_credentials->pid))
577 return FALSE;
578 }
579 else if (which == DBUS_CREDENTIAL_UNIX_USER_ID &&
580 other_credentials->unix_uid != DBUS_UID_UNSET)
581 {
582 if (!_dbus_credentials_add_unix_uid (credentials, other_credentials->unix_uid))
583 return FALSE;
584 }
585 else if (which == DBUS_CREDENTIAL_UNIX_GROUP_IDS &&
586 other_credentials->unix_gids != NULL)
587 {
588 dbus_gid_t *gids;
589
590 gids = dbus_new (dbus_gid_t, other_credentials->n_unix_gids);
591
592 if (gids == NULL)
593 return FALSE;
594
595 memcpy (gids, other_credentials->unix_gids,
596 sizeof (dbus_gid_t) * other_credentials->n_unix_gids);
597
598 _dbus_credentials_take_unix_gids (credentials, gids,
599 other_credentials->n_unix_gids);
600 }
601 else if (which == DBUS_CREDENTIAL_WINDOWS_SID &&
602 other_credentials->windows_sid != NULL)
603 {
604 if (!_dbus_credentials_add_windows_sid (credentials, other_credentials->windows_sid))
605 return FALSE;
606 }
607 else if (which == DBUS_CREDENTIAL_LINUX_SECURITY_LABEL &&
608 other_credentials->linux_security_label != NULL)
609 {
611 other_credentials->linux_security_label))
612 return FALSE;
613 }
614 else if (which == DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID &&
615 other_credentials->adt_audit_data != NULL)
616 {
617 if (!_dbus_credentials_add_adt_audit_data (credentials, other_credentials->adt_audit_data, other_credentials->adt_audit_data_size))
618 return FALSE;
619 }
620#ifdef HAVE_PDPLINUX
621 else if (which == DBUS_CREDENTIAL_UNIX_PARSEC){
622
623 _dbus_verbose("***** Asked to add credential DBUS_CREDENTIAL_UNIX_PARSEC (%d))\n", which);
624
625 if (other_credentials->credential_parsecid != NULL) {
626 if (!_dbus_credentials_pdplinux_add_unix_parsec (credentials, other_credentials->credential_parsecid)){
627 _dbus_verbose("Return FAILED (can't set credentials to this one from other_credentials)\n");
628 return FALSE;
629 }
630 else{
631 _dbus_verbose("Return OK (credentials successful copied to this one from other_credentials)\n");
632 }
633 }
634 else{
635 _dbus_verbose("Return OK (but other_cred not set pid=%ld, uid=%lu). So do not add, pdp_credential=%p\n",
636 other_credentials->pid,
637 other_credentials->unix_uid,
638 credentials->credential_parsecid);
639 }
640 }
641
642#endif
643
644 return TRUE;
645}
646
652void
654{
655#ifdef HAVE_PDPLINUX
656 if (credentials->credential_parsecid) dbus_free(credentials->credential_parsecid);
657 credentials->credential_parsecid=NULL;
658#endif
659 credentials->pid = DBUS_PID_UNSET;
660 credentials->unix_uid = DBUS_UID_UNSET;
661 dbus_free (credentials->unix_gids);
662 credentials->unix_gids = NULL;
663 credentials->n_unix_gids = 0;
664 dbus_free (credentials->windows_sid);
665 credentials->windows_sid = NULL;
666 dbus_free (credentials->linux_security_label);
667 credentials->linux_security_label = NULL;
668 dbus_free (credentials->adt_audit_data);
669 credentials->adt_audit_data = NULL;
670 credentials->adt_audit_data_size = 0;
671}
672
681{
682 DBusCredentials *copy;
683
684 copy = _dbus_credentials_new ();
685 if (copy == NULL)
686 return NULL;
687
688 if (!_dbus_credentials_add_credentials (copy, credentials))
689 {
691 return NULL;
692 }
693
694 return copy;
695}
696
710 DBusCredentials *other_credentials)
711{
712 /* both windows and unix user must be the same (though pretty much
713 * in all conceivable cases, one will be unset)
714 */
715 return credentials->unix_uid == other_credentials->unix_uid &&
716 ((!(credentials->windows_sid || other_credentials->windows_sid)) ||
717 (credentials->windows_sid && other_credentials->windows_sid &&
718 strcmp (credentials->windows_sid, other_credentials->windows_sid) == 0));
719}
720
731 DBusString *string)
732{
733 dbus_bool_t join;
734
735 join = FALSE;
736 if (credentials->unix_uid != DBUS_UID_UNSET)
737 {
738 if (!_dbus_string_append_printf (string, "uid=" DBUS_UID_FORMAT, credentials->unix_uid))
739 goto oom;
740 join = TRUE;
741 }
742 if (credentials->pid != DBUS_PID_UNSET)
743 {
744 if (!_dbus_string_append_printf (string, "%spid=" DBUS_PID_FORMAT, join ? " " : "", credentials->pid))
745 goto oom;
746 join = TRUE;
747 }
748
749 if (credentials->unix_gids != NULL)
750 {
751 size_t i;
752
753 for (i = 0; i < credentials->n_unix_gids; i++)
754 {
755 if (!_dbus_string_append_printf (string, "%sgid=" DBUS_GID_FORMAT,
756 join ? " " : "",
757 credentials->unix_gids[i]))
758 goto oom;
759
760 join = TRUE;
761 }
762 }
763
764 if (credentials->windows_sid != NULL)
765 {
766 if (!_dbus_string_append_printf (string, "%ssid=%s", join ? " " : "", credentials->windows_sid))
767 goto oom;
768 join = TRUE;
769 }
770
771 if (credentials->linux_security_label != NULL)
772 {
773 if (!_dbus_string_append_printf (string, "%slsm='%s'",
774 join ? " " : "",
775 credentials->linux_security_label))
776 goto oom;
777 join = TRUE;
778 }
779#ifdef HAVE_PDPLINUX
780 if (credentials->credential_parsecid != NULL)
781 {
782 char* pdplinux_context_string=NULL;
783
784 if (_dbus_pdplinux_context_to_name(credentials->credential_parsecid,&pdplinux_context_string)){
785 if (!_dbus_string_append_printf (string,
786 "%sparsec= %s",
787 join ? " " : "",
788 pdplinux_context_string)){
789 //goto oom;
790 }
791
792 }
793
794 if (pdplinux_context_string) dbus_free(pdplinux_context_string);
795
796 join = TRUE;
797 }
798#endif
799
800 return TRUE;
801oom:
802 return FALSE;
803}
804
805// ********************************PDP********************************
806#ifdef HAVE_PDPLINUX
807
808//-----------------------------------------------------------------------------------------------
809void
810_dbus_credentials_pdplinux_get_unix_parsec (DBusCredentials *credentials, BusPDPLinuxID** pparsecid)
811{
812 *pparsecid=credentials->credential_parsecid;
813}
814
815//-----------------------------------------------------------------------------------------------
817_dbus_credentials_pdplinux_add_unix_parsec (DBusCredentials *credentials,
818 BusPDPLinuxID* parsecid)
819{
820 if (!parsecid) return FALSE;
821 if (!credentials) return FALSE;
822
823 if (credentials->credential_parsecid) dbus_free(credentials->credential_parsecid);
824 credentials->credential_parsecid=NULL;
825
826 credentials->credential_parsecid=dbus_malloc0(
827 sizeof(*(parsecid))+parsecid->sz_pdplinux_context);
828
829 if (credentials->credential_parsecid){
830 memcpy(credentials->credential_parsecid,parsecid,
831 sizeof(*(parsecid))+parsecid->sz_pdplinux_context);
832 }
833 else{
834 _dbus_verbose("No memory!\n");
835 return FALSE;
836 }
837 return TRUE;
838}
839
840#endif
843/* tests in dbus-credentials-util.c */
void _dbus_credentials_ref(DBusCredentials *credentials)
Increment refcount on credentials.
dbus_bool_t _dbus_credentials_include(DBusCredentials *credentials, DBusCredentialType type)
Checks whether the given credential is present.
dbus_bool_t _dbus_credentials_are_superset(DBusCredentials *credentials, DBusCredentials *possible_subset)
Checks whether the first credentials object contains all the credentials found in the second credenti...
dbus_bool_t _dbus_credentials_same_user(DBusCredentials *credentials, DBusCredentials *other_credentials)
Check whether the user-identifying credentials in two credentials objects are identical.
void _dbus_credentials_clear(DBusCredentials *credentials)
Clear all credentials in the object.
dbus_uid_t _dbus_credentials_get_unix_uid(DBusCredentials *credentials)
Gets the UNIX user ID in the credentials, or DBUS_UID_UNSET if the credentials object doesn't contain...
DBusCredentials * _dbus_credentials_copy(DBusCredentials *credentials)
Copy a credentials object.
DBusCredentials * _dbus_credentials_new_from_current_process(void)
Creates a new object with the most important credentials (user ID and process ID) from the current pr...
dbus_bool_t _dbus_credentials_to_string_append(DBusCredentials *credentials, DBusString *string)
Convert the credentials in this object to a human-readable string format, and append to the given str...
DBusCredentials * _dbus_credentials_new(void)
Creates a new credentials object.
void * _dbus_credentials_get_adt_audit_data(DBusCredentials *credentials)
Gets the ADT audit data in the credentials, or NULL if the credentials object doesn't contain ADT aud...
dbus_bool_t _dbus_credentials_add_linux_security_label(DBusCredentials *credentials, const char *label)
Add a Linux security label, as used by LSMs such as SELinux, Smack and AppArmor, to the credentials.
dbus_bool_t _dbus_credentials_add_credentials(DBusCredentials *credentials, DBusCredentials *other_credentials)
Merge all credentials found in the second object into the first object, overwriting the first object ...
const char * _dbus_credentials_get_linux_security_label(DBusCredentials *credentials)
Gets the Linux security label (as used by LSMs) from the credentials, or NULL if the credentials obje...
void _dbus_credentials_take_unix_gids(DBusCredentials *credentials, dbus_gid_t *gids, size_t n_gids)
Add UNIX group IDs to the credentials, replacing any group IDs that might already have been present.
void _dbus_credentials_unref(DBusCredentials *credentials)
Decrement refcount on credentials.
dbus_bool_t _dbus_credentials_get_unix_gids(DBusCredentials *credentials, const dbus_gid_t **gids, size_t *n_gids)
Get the Unix group IDs.
dbus_bool_t _dbus_credentials_are_empty(DBusCredentials *credentials)
Checks whether a credentials object contains anything.
dbus_bool_t _dbus_credentials_add_unix_uid(DBusCredentials *credentials, dbus_uid_t uid)
Add a UNIX user ID to the credentials.
dbus_bool_t _dbus_credentials_add_windows_sid(DBusCredentials *credentials, const char *windows_sid)
Add a Windows user SID to the credentials.
dbus_bool_t _dbus_credentials_add_pid(DBusCredentials *credentials, dbus_pid_t pid)
Add a UNIX process ID to the credentials.
dbus_pid_t _dbus_credentials_get_pid(DBusCredentials *credentials)
Gets the UNIX process ID in the credentials, or DBUS_PID_UNSET if the credentials object doesn't cont...
dbus_bool_t _dbus_credentials_add_adt_audit_data(DBusCredentials *credentials, void *audit_data, dbus_int32_t size)
Add ADT audit data to the credentials.
dbus_int32_t _dbus_credentials_get_adt_audit_data_size(DBusCredentials *credentials)
Gets the ADT audit data size in the credentials, or 0 if the credentials object doesn't contain ADT a...
const char * _dbus_credentials_get_windows_sid(DBusCredentials *credentials)
Gets the Windows user SID in the credentials, or NULL if the credentials object doesn't contain a Win...
dbus_bool_t _dbus_credentials_add_credential(DBusCredentials *credentials, DBusCredentialType which, DBusCredentials *other_credentials)
Merge the given credential found in the second object into the first object, overwriting the first ob...
dbus_bool_t _dbus_credentials_are_anonymous(DBusCredentials *credentials)
Checks whether a credentials object contains a user identity.
#define _dbus_assert_not_reached(explanation)
Aborts with an error message if called.
#define _dbus_assert(condition)
Aborts with an error message if the condition is false.
char * _dbus_strdup(const char *str)
Duplicates a string.
void * _dbus_memdup(const void *mem, size_t n_bytes)
Duplicates a block of memory.
#define NULL
A null pointer, defined appropriately for C or C++.
#define TRUE
Expands to "1".
#define FALSE
Expands to "0".
void dbus_free(void *memory)
Frees a block of memory previously allocated by dbus_malloc() or dbus_malloc0().
Definition: dbus-memory.c:692
#define dbus_new(type, count)
Safe macro for using dbus_malloc().
Definition: dbus-memory.h:57
void * dbus_malloc0(size_t bytes)
Allocates the given number of bytes, as with standard malloc(), but all bytes are initialized to zero...
Definition: dbus-memory.c:522
dbus_bool_t _dbus_string_append_printf(DBusString *str, const char *format,...)
Appends a printf-style formatted string to the DBusString.
Definition: dbus-string.c:1145
unsigned long dbus_uid_t
A user ID.
Definition: dbus-sysdeps.h:137
unsigned long dbus_pid_t
A process ID.
Definition: dbus-sysdeps.h:135
unsigned long dbus_gid_t
A group ID.
Definition: dbus-sysdeps.h:139
#define DBUS_UID_UNSET
an invalid UID used to represent an uninitialized dbus_uid_t field
Definition: dbus-sysdeps.h:144
#define DBUS_PID_UNSET
an invalid PID used to represent an uninitialized dbus_pid_t field
Definition: dbus-sysdeps.h:142
dbus_bool_t _dbus_credentials_add_from_current_process(DBusCredentials *credentials)
Adds the most important credentials of the current process (the uid and pid) to the passed-in credent...
#define DBUS_GID_FORMAT
an appropriate printf format for dbus_gid_t
Definition: dbus-sysdeps.h:159
#define DBUS_UID_FORMAT
an appropriate printf format for dbus_uid_t
Definition: dbus-sysdeps.h:157
#define DBUS_PID_FORMAT
an appropriate printf format for dbus_pid_t
Definition: dbus-sysdeps.h:155
dbus_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE.
Definition: dbus-types.h:35