Commit fbc2a447 authored by Simon McVittie's avatar Simon McVittie
Browse files

sysdeps: Document what _dbus_credentials_new_from_current_process has



It only has the most important credentials, not the full set.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103737
parent 395269e0
......@@ -93,7 +93,7 @@ _dbus_credentials_new (void)
}
/**
* Creates a new object with credentials (user ID and process ID) from the current process.
* Creates a new object with the most important credentials (user ID and process ID) from the current process.
* @returns the new object or #NULL if no memory
*/
DBusCredentials*
......
......@@ -2756,8 +2756,14 @@ _dbus_user_info_fill_uid (DBusUserInfo *info,
}
/**
* Adds the credentials of the current process to the
* passed-in credentials object.
* Adds the most important credentials of the current process
* (the uid and pid) to the passed-in credentials object.
*
* The group vector is not included because it is rarely needed.
* The Linux security label is not included because it is rarely
* needed, it requires reading /proc, and the LSM API doesn't actually
* guarantee that the string seen in /proc is comparable to the strings
* found in SO_PEERSEC results.
*
* @param credentials credentials to add to
* @returns #FALSE if no memory; does not properly roll back on failure, so only some credentials may have been added
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment