From 010f75a8d052251fee1bb2d42f926693fade962c Mon Sep 17 00:00:00 2001 From: Andreas Müller Date: Tue, 18 Jun 2013 11:01:36 +0200 Subject: polkit-group-rule-datetime: initial add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add user-group 'datetime' allowing members to change date/time/timezone settings Signed-off-by: Andreas Müller --- .../polkit/files/50-org.freedesktop.timedate1.rules | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules (limited to 'meta-oe/recipes-extended/polkit/files') 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 @@ +/* give group 'datetime' rights to change settings */ +/* based upon http://lists.freedesktop.org/archives/systemd-devel/2013-March/009576.html */ + +polkit.addRule(function(action, subject) { + if (action.id.indexOf("org.freedesktop.timedate1.") == 0 && subject.isInGroup("datetime")) { + return polkit.Result.YES; + } +}); -- cgit v1.2.3-54-g00ecf