summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules')
-rw-r--r--meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules b/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules
new file mode 100644
index 000000000..95b0e0f69
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules
@@ -0,0 +1,8 @@
1/* give group 'datetime' rights to change settings */
2/* based upon http://lists.freedesktop.org/archives/systemd-devel/2013-March/009576.html */
3
4polkit.addRule(function(action, subject) {
5 if (action.id.indexOf("org.freedesktop.timedate1.") == 0 && subject.isInGroup("datetime")) {
6 return polkit.Result.YES;
7 }
8});