• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/dbus-1.6.8/dbus/

Lines Matching defs:credentials

36 #include "dbus-credentials.h"
959 * Enables or disables the reception of credentials on the given socket during
962 * not have to do anything special to send the credentials.
1623 "Failed to write credentials byte: %s",
1630 "wrote zero bytes writing credentials byte");
1636 _dbus_verbose ("wrote credentials byte\n");
1643 * and reads unix credentials if available. Clears the credentials
1644 * object, then adds pid/uid if available, so any previous credentials
1648 * we got valid credentials. On some systems, such as Linux,
1655 * use sendmsg()/recvmsg() to transmit credentials.
1658 * @param credentials object to add client credentials to
1664 DBusCredentials *credentials,
1700 _dbus_credentials_clear (credentials);
1705 * credentials information without doing anything special.
1735 "Failed to read credentials byte: %s",
1745 "Failed to read credentials byte (zero-length read)");
1765 _dbus_verbose ("read credentials byte\n");
1784 _dbus_verbose ("Failed to getsockopt() credentials, returned len %d/%d: %s\n",
1796 /* Since we have already got the credentials from this socket, we can
1808 _dbus_verbose ("Failed to getpeereid() credentials: %s\n", _dbus_strerror (errno));
1840 _dbus_credentials_add_adt_audit_data (credentials, data, size);
1850 _dbus_verbose ("Failed to getpeerucred() credentials: %s\n", _dbus_strerror (errno));
1855 _dbus_verbose ("Socket credentials not supported on this OS\n");
1868 if (!_dbus_credentials_add_unix_pid (credentials, pid_read))
1877 if (!_dbus_credentials_add_unix_uid (credentials, uid_read))
1888 * Sends a single nul byte with our UNIX credentials as ancillary
1890 * systems that don't support sending credentials, just writes a byte,
1891 * doesn't send any credentials. On some systems, such as Linux,
1898 * use sendmsg()/recvmsg() to transmit credentials.
2306 * Adds the credentials of the current process to the
2307 * passed-in credentials object.
2309 * @param credentials credentials to add to
2310 * @returns #FALSE if no memory; does not properly roll back on failure, so only some credentials may have been added
2313 _dbus_credentials_add_from_current_process (DBusCredentials *credentials)
2323 if (!_dbus_credentials_add_unix_pid(credentials, _dbus_getpid()))
2325 if (!_dbus_credentials_add_unix_uid(credentials, _dbus_geteuid()))
3871 * Appends the directory in which a keyring for the given credentials
3872 * should be stored. The credentials should have either a Windows or
3879 * @param credentials credentials the directory should be for
3885 DBusCredentials *credentials)
3891 _dbus_assert (credentials != NULL);
3892 _dbus_assert (!_dbus_credentials_are_anonymous (credentials));
3897 uid = _dbus_credentials_get_unix_uid (credentials);