switch (cmd) {
case KDBUS_CMD_BYEBYE:
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
/* acquire a well-known name */
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
/* release a well-known name */
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
/* update the properties of a connection */
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
if (conn->type != KDBUS_CONN_CONNECTED &&
conn->type != KDBUS_CONN_MONITOR) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
if (conn->type != KDBUS_CONN_CONNECTED &&
conn->type != KDBUS_CONN_MONITOR) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
struct kdbus_kmsg *kmsg = NULL;
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
if (conn->type != KDBUS_CONN_CONNECTED &&
conn->type != KDBUS_CONN_MONITOR) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
u64 cookie;
if (conn->type != KDBUS_CONN_CONNECTED) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}
if (conn->type != KDBUS_CONN_CONNECTED &&
conn->type != KDBUS_CONN_MONITOR) {
- ret = -EPERM;
+ ret = -EOPNOTSUPP;
break;
}