Searched defs:creds (Results 1 - 5 of 5) sorted by relevance

/systemd/src/core/
H A Dselinux-access.c47 sd_bus_creds *creds; member in struct:audit_info
69 if (sd_bus_creds_get_audit_login_uid(audit->creds, &login_uid) >= 0)
71 if (sd_bus_creds_get_euid(audit->creds, &uid) >= 0)
73 if (sd_bus_creds_get_egid(audit->creds, &gid) >= 0)
187 _cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
209 &creds);
219 assert_return((sd_bus_creds_get_augmented_mask(creds) & SD_BUS_CREDS_SELINUX_CONTEXT) == 0, -EPERM);
221 r = sd_bus_creds_get_selinux_context(creds, &scon);
245 sd_bus_creds_get_cmdline(creds, &cmdline);
248 audit_info.creds
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-convenience.c511 _public_ int sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_bus_creds **creds) { argument
526 *creds = sd_bus_creds_ref(c);
536 /* There's a sender, but the creds are
541 * thus also lacks the creds. */
542 return sd_bus_get_name_creds(call->bus, call->sender, mask, creds);
549 return sd_bus_get_owner_creds(call->bus, mask, creds);
552 return bus_creds_extend_by_pid(c, mask, creds);
556 _cleanup_(sd_bus_creds_unrefp) sd_bus_creds *creds = NULL;
571 r = sd_bus_query_sender_creds(call, SD_BUS_CREDS_UID|SD_BUS_CREDS_EUID|SD_BUS_CREDS_EFFECTIVE_CAPS, &creds);
580 assert_return((sd_bus_creds_get_augmented_mask(creds)
[all...]
H A Dbus-control.c451 if (mask & SD_BUS_CREDS_UID && (uid_t) item->creds.uid != UID_INVALID) {
452 c->uid = (uid_t) item->creds.uid;
456 if (mask & SD_BUS_CREDS_EUID && (uid_t) item->creds.euid != UID_INVALID) {
457 c->euid = (uid_t) item->creds.euid;
461 if (mask & SD_BUS_CREDS_SUID && (uid_t) item->creds.suid != UID_INVALID) {
462 c->suid = (uid_t) item->creds.suid;
466 if (mask & SD_BUS_CREDS_FSUID && (uid_t) item->creds.fsuid != UID_INVALID) {
467 c->fsuid = (uid_t) item->creds.fsuid;
471 if (mask & SD_BUS_CREDS_GID && (gid_t) item->creds.gid != GID_INVALID) {
472 c->gid = (gid_t) item->creds
641 bus_get_name_creds_kdbus( sd_bus *bus, const char *name, uint64_t mask, bool allow_activator, sd_bus_creds **creds) argument
748 bus_get_name_creds_dbus1( sd_bus *bus, const char *name, uint64_t mask, sd_bus_creds **creds) argument
902 sd_bus_get_name_creds( sd_bus *bus, const char *name, uint64_t mask, sd_bus_creds **creds) argument
[all...]
H A Dbus-message.h28 #include "bus-creds.h"
83 sd_bus_creds creds; member in struct:sd_bus_message
H A Dkdbus.h419 * @creds: KDBUS_ITEM_CREDS
444 struct kdbus_creds creds; member in union:kdbus_item::__anon140

Completed in 587 milliseconds