Description: csd-datetime forgets to authorize users
Author: https://github.com/leigh123linux
Origin: upstream, ac5e0be8c1817616dbdb056b6881cfc4660f57a8
Bug: http://www.openwall.com/lists/oss-security/2015/10/28/3
Last-Update: 2016-03-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: cinnamon-settings-daemon/plugins/datetime/csd-datetime-mechanism.c
===================================================================
--- cinnamon-settings-daemon.orig/plugins/datetime/csd-datetime-mechanism.c	2016-03-14 20:18:33.588428169 +0100
+++ cinnamon-settings-daemon/plugins/datetime/csd-datetime-mechanism.c	2016-03-14 20:26:56.302535208 +0100
@@ -354,6 +354,9 @@
         int exit_status;
         GError *error;
 
+        if (!_check_polkit_for_action (mechanism, context))
+                return FALSE;
+
         date_str = g_strdup_printf ("%02d/%02d/%d", month, day, year);
         error = NULL;
 
