Functions | |
DBusCredentials * | _dbus_credentials_new (void) |
Creates a new credentials object. | |
DBusCredentials * | _dbus_credentials_new_from_current_process (void) |
Creates a new object with credentials (user ID and process ID) from the current process. | |
void | _dbus_credentials_ref (DBusCredentials *credentials) |
Increment refcount on credentials. | |
void | _dbus_credentials_unref (DBusCredentials *credentials) |
Decrement refcount on credentials. | |
dbus_bool_t | _dbus_credentials_add_unix_pid (DBusCredentials *credentials, dbus_pid_t pid) |
Add a UNIX process ID to the credentials. | |
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_include (DBusCredentials *credentials, DBusCredentialType type) |
Checks whether the given credential is present. | |
dbus_pid_t | _dbus_credentials_get_unix_pid (DBusCredentials *credentials) |
Gets the UNIX process ID in the credentials, or DBUS_PID_UNSET if the credentials object doesn't contain a process ID. | |
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 a user ID. | |
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 Windows user SID. | |
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 credentials object. | |
dbus_bool_t | _dbus_credentials_are_empty (DBusCredentials *credentials) |
Checks whether a credentials object contains anything. | |
dbus_bool_t | _dbus_credentials_are_anonymous (DBusCredentials *credentials) |
Checks whether a credentials object contains a user identity. | |
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 if there are any overlaps. | |
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 object's value for that credential. | |
void | _dbus_credentials_clear (DBusCredentials *credentials) |
Clear all credentials in the object. | |
DBusCredentials * | _dbus_credentials_copy (DBusCredentials *credentials) |
Copy a credentials object. | |
dbus_bool_t | _dbus_credentials_same_user (DBusCredentials *credentials, DBusCredentials *other_credentials) |
Check whether the user-identifying credentials in two credentials objects are identical. |
Credentials are what you have to prove you have in order to authenticate. The main credentials right now are a unix user account, a Windows user account, or a UNIX process ID.
|
Merge the given credential found in the second object into the first object, overwriting the first object's value for that credential. Does nothing if the second object does not contain the specified credential. i.e., will never delete a credential from the first object.
Definition at line 342 of file dbus-credentials.c. References _dbus_credentials_add_unix_pid(), _dbus_credentials_add_unix_uid(), _dbus_credentials_add_windows_sid(), DBUS_PID_UNSET, DBUS_UID_UNSET, FALSE, NULL, TRUE, unix_pid, unix_uid, and windows_sid. Referenced by _dbus_credentials_add_credentials(). |
|
Merge all credentials found in the second object into the first object, overwriting the first object if there are any overlaps.
Definition at line 314 of file dbus-credentials.c. References _dbus_credentials_add_credential(). Referenced by _dbus_auth_set_credentials(), and _dbus_credentials_copy(). |
|
Add a UNIX process ID to the credentials.
Definition at line 144 of file dbus-credentials.c. References TRUE, and unix_pid. Referenced by _dbus_credentials_add_credential(), _dbus_credentials_add_from_current_process(), and _dbus_read_credentials_socket(). |
|
Add a UNIX user ID to the credentials.
Definition at line 159 of file dbus-credentials.c. References TRUE, and unix_uid. Referenced by _dbus_credentials_add_credential(), _dbus_credentials_add_from_current_process(), _dbus_credentials_add_from_user(), and _dbus_read_credentials_socket(). |
|
Add a Windows user SID to the credentials.
Definition at line 175 of file dbus-credentials.c. References _dbus_strdup(), dbus_free(), FALSE, NULL, TRUE, and windows_sid. Referenced by _dbus_credentials_add_credential(). |
|
Checks whether a credentials object contains a user identity.
Definition at line 298 of file dbus-credentials.c. References DBUS_UID_UNSET, NULL, unix_uid, and windows_sid. Referenced by _dbus_append_keyring_directory_for_credentials(), _dbus_keyring_new_for_credentials(), and _dbus_transport_get_is_anonymous(). |
|
Checks whether a credentials object contains anything.
Definition at line 283 of file dbus-credentials.c. References DBUS_PID_UNSET, DBUS_UID_UNSET, NULL, unix_pid, unix_uid, and windows_sid. Referenced by _dbus_auth_get_identity(). |
|
Checks whether the first credentials object contains all the credentials found in the second credentials object.
Definition at line 263 of file dbus-credentials.c. References DBUS_PID_UNSET, DBUS_UID_UNSET, NULL, unix_pid, unix_uid, and windows_sid. |
|
Clear all credentials in the object.
Definition at line 374 of file dbus-credentials.c. References dbus_free(), DBUS_PID_UNSET, DBUS_UID_UNSET, NULL, unix_pid, unix_uid, and windows_sid. Referenced by _dbus_auth_set_credentials(), and _dbus_read_credentials_socket(). |
|
Copy a credentials object.
Definition at line 389 of file dbus-credentials.c. References _dbus_credentials_add_credentials(), _dbus_credentials_new(), _dbus_credentials_unref(), and NULL. Referenced by _dbus_keyring_new_for_credentials(). |
|
Gets the UNIX process ID in the credentials, or DBUS_PID_UNSET if the credentials object doesn't contain a process ID.
Definition at line 223 of file dbus-credentials.c. References unix_pid. Referenced by _dbus_transport_get_unix_process_id(). |
|
Gets the UNIX user ID in the credentials, or DBUS_UID_UNSET if the credentials object doesn't contain a user ID.
Definition at line 236 of file dbus-credentials.c. References unix_uid. Referenced by _dbus_append_keyring_directory_for_credentials(), and _dbus_transport_get_unix_user(). |
|
Gets the Windows user SID in the credentials, or NULL if the credentials object doesn't contain a Windows user SID.
Definition at line 249 of file dbus-credentials.c. References windows_sid. Referenced by _dbus_transport_get_windows_user(). |
|
Checks whether the given credential is present.
Definition at line 198 of file dbus-credentials.c. References _dbus_assert_not_reached, DBUS_PID_UNSET, DBUS_UID_UNSET, FALSE, NULL, unix_pid, unix_uid, and windows_sid. Referenced by _dbus_transport_get_is_authenticated(), _dbus_transport_get_unix_process_id(), _dbus_transport_get_unix_user(), and _dbus_transport_get_windows_user(). |
|
Creates a new credentials object.
Definition at line 68 of file dbus-credentials.c. References dbus_new, DBUS_PID_UNSET, DBUS_UID_UNSET, NULL, refcount, unix_pid, unix_uid, and windows_sid. Referenced by _dbus_credentials_copy(), _dbus_credentials_new_from_current_process(), and _dbus_transport_init_base(). |
|
Creates a new object with credentials (user ID and process ID) from the current process.
Definition at line 89 of file dbus-credentials.c. References _dbus_credentials_add_from_current_process(), _dbus_credentials_new(), _dbus_credentials_unref(), and NULL. Referenced by _dbus_keyring_new_for_credentials(). |
|
Increment refcount on credentials.
Definition at line 112 of file dbus-credentials.c. References _dbus_assert, and refcount. |
|
Check whether the user-identifying credentials in two credentials objects are identical. Credentials that are not related to the user are ignored, but any kind of user ID credentials must be the same (UNIX user ID, Windows user SID, etc.) and present in both objects for the function to return TRUE.
Definition at line 418 of file dbus-credentials.c. References unix_uid, and windows_sid. Referenced by _dbus_keyring_is_for_credentials(). |
|
Decrement refcount on credentials.
Definition at line 124 of file dbus-credentials.c. References _dbus_assert, dbus_free(), refcount, and windows_sid. Referenced by _dbus_auth_unref(), _dbus_credentials_copy(), _dbus_credentials_new_from_current_process(), _dbus_keyring_new_for_credentials(), _dbus_keyring_unref(), _dbus_transport_finalize_base(), and _dbus_transport_init_base(). |