summaryrefslogtreecommitdiff
path: root/src/bus-proxyd/bus-proxyd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-07 19:29:14 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-07 19:32:42 +0100
commit210a68826fac0f6525719cc6044c7858c655986a (patch)
treecac499e52ecfe455f1c83561ff2e94647cbc6bd7 /src/bus-proxyd/bus-proxyd.c
parentb80c66ba9836456de5260e4a1b696ba25561f613 (diff)
sd-bus: always catch name requests for the special names "org.freedesktop.DBus" and "org.freedesktop.DBus.Local" and refuse them
Diffstat (limited to 'src/bus-proxyd/bus-proxyd.c')
-rw-r--r--src/bus-proxyd/bus-proxyd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
index fc70cce940..a7818f5462 100644
--- a/src/bus-proxyd/bus-proxyd.c
+++ b/src/bus-proxyd/bus-proxyd.c
@@ -829,10 +829,6 @@ static int process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, Policy *polic
if (r < 0)
return synthetic_reply_method_errno(m, r, NULL);
- if (streq(name, "org.freedesktop.DBus"))
- return synthetic_reply_method_error(m, &SD_BUS_ERROR_MAKE_CONST(SD_BUS_ERROR_INVALID_ARGS,
- "Connection is not allowed to own the org.freedesktop.DBus service."));
-
if (policy && !policy_check_own(policy, ucred->uid, ucred->gid, name))
return synthetic_reply_method_errno(m, -EPERM, NULL);