[glib/wip/pwithnall/1954-dbus-keyring-handling: 4/6] gdbusauthmechanismsha1: Fix keyring lock file permissions



commit 11edc89b8c0239a8e280c455345accff1e4a5efb
Author: Philip Withnall <withnall endlessm com>
Date:   Tue May 5 15:01:07 2020 +0100

    gdbusauthmechanismsha1: Fix keyring lock file permissions
    
    Why should it have the sticky bit set? dbus.git sets permissions 0600;
    so should GLib.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/gdbusauthmechanismsha1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdbusauthmechanismsha1.c b/gio/gdbusauthmechanismsha1.c
index 7305f8df8..0d58b1321 100644
--- a/gio/gdbusauthmechanismsha1.c
+++ b/gio/gdbusauthmechanismsha1.c
@@ -518,7 +518,7 @@ keyring_acquire_lock (const gchar  *path,
 #else
                 0,
 #endif
-                0700);
+                0600);
   errsv = errno;
   if (ret == -1)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]