chiark / gitweb /
memfd: don't open kdbus for memfd
[elogind.git] / src / shared / memfd.c
index dcebfc9d6f8e3aee704a9b655ac1d7136e7f427b..6a2e12196a05e8a1362d0709fb8c467ea12bdd83 100644 (file)
@@ -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