diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2013-06-18 11:01:36 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-06-20 12:28:00 +0200 |
commit | 010f75a8d052251fee1bb2d42f926693fade962c (patch) | |
tree | 08b45dae7e2ab9b69ba277e378e078d5f5df330f /meta-oe/recipes-extended/polkit/files | |
parent | 2ae8dbddf8385850a1526289b256c545736d4d8b (diff) | |
download | meta-openembedded-010f75a8d052251fee1bb2d42f926693fade962c.tar.gz |
polkit-group-rule-datetime: initial add
add user-group 'datetime' allowing members to change date/time/timezone settings
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-oe/recipes-extended/polkit/files')
-rw-r--r-- | meta-oe/recipes-extended/polkit/files/50-org.freedesktop.timedate1.rules | 8 |
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 | |||
4 | polkit.addRule(function(action, subject) { | ||
5 | if (action.id.indexOf("org.freedesktop.timedate1.") == 0 && subject.isInGroup("datetime")) { | ||
6 | return polkit.Result.YES; | ||
7 | } | ||
8 | }); | ||