wake_up_interruptible(&conn_dst->wait);
}
+#ifndef DISABLE_KDBUS_POLICY
/* query the policy-database for all names of @whom */
static bool kdbus_conn_policy_query_all(struct kdbus_conn *conn,
const struct cred *conn_creds,
return pass;
}
+#endif
/**
* kdbus_conn_policy_own_name() - verify a connection can own the given name
const struct cred *conn_creds,
const char *name)
{
- unsigned int hash = kdbus_strhash(name);
- int res;
-
#ifdef DISABLE_KDBUS_POLICY
return true;
#else
+ unsigned int hash = kdbus_strhash(name);
+ int res;
if (!conn_creds)
conn_creds = conn->cred;
const struct cred *conn_creds,
const char *name)
{
- int res;
-
#ifdef DISABLE_KDBUS_POLICY
return true;
#else
+ int res;
/*
* By default, all names are visible on a bus. SEE policies can only be