kdbus: fix memfd kdbus items mapping 24/69524/1
authorLukasz Skalski <l.skalski@samsung.com>
Fri, 13 May 2016 13:43:54 +0000 (15:43 +0200)
committerLukasz Skalski <l.skalski@samsung.com>
Fri, 13 May 2016 13:43:54 +0000 (15:43 +0200)
Change-Id: I48e9799e4fccaea2016cd77a92ebe971eeb1b660

dbus/dbus-transport-kdbus.c

index b46db211827e5c571d41d1a18a71d1e81eabb4f0..8fb53ae6aa4b613c7497930b5b54abc4aedaaf0a 100644 (file)
@@ -2789,7 +2789,7 @@ kdbus_decode_dbus_message (const struct kdbus_msg *msg,
               size = item->memfd.size;
               _dbus_verbose ("memfd.size : %llu\n", (unsigned long long)size);
 
-              buf = mmap (NULL, size, PROT_READ , MAP_SHARED, item->memfd.fd, 0);
+              buf = mmap (NULL, size, PROT_READ, MAP_PRIVATE, item->memfd.fd, 0);
               if (buf == MAP_FAILED)
                 {
                   _dbus_verbose ("mmap () fd=%i failed:%m", item->memfd.fd);