bus: when getting credentials of a bus name that is activatable but not activated, say we don't have anything.

This commit is contained in:
Lennart Poettering 2013-12-21 18:47:33 +01:00
parent 050eb34da8
commit c20733832f

View file

@ -387,6 +387,10 @@ static int bus_get_owner_kdbus(
conn_info = (struct kdbus_conn_info *) ((uint8_t *) bus->kdbus_buffer + cmd->offset);
/* Non-activated names are considered not available */
if (conn_info->flags & KDBUS_HELLO_ACTIVATOR)
return name[0] == ':' ? -ENXIO : -ENOENT;
c = bus_creds_new();
if (!c)
return -ENOMEM;