summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2014-08-18 12:57:55 +0200
committerDavid Herrmann <dh.herrmann@gmail.com>2014-08-18 12:57:55 +0200
commit302e4b4963c471baefa60b220e3e05f93a49de45 (patch)
tree80489d70bb3527545d0ffe165cd250f0a9c50695 /src
parent7e2ce386ca9ed825aaac2babe09946380af6bb94 (diff)
memfd: don't open kdbus for memfd
No reason to open /dev/kdbus/control if we want memfds. memfd_create() is always available.
Diffstat (limited to 'src')
-rw-r--r--src/shared/memfd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/memfd.c b/src/shared/memfd.c
index dcebfc9d6f..6a2e12196a 100644
--- a/src/shared/memfd.c
+++ b/src/shared/memfd.c
@@ -39,16 +39,11 @@ struct sd_memfd {
int sd_memfd_new(sd_memfd **m, const char *name) {
- _cleanup_close_ int kdbus = -1;
_cleanup_free_ char *g = NULL;
sd_memfd *n;
assert_return(m, -EINVAL);
- kdbus = open("/dev/kdbus/control", O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (kdbus < 0)
- return -errno;
-
if (name) {
/* The kernel side is pretty picky about the character
* set here, let's do the usual bus escaping to deal