summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:42:37 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:58:12 +0100
commit360cf28714c9ffdf624ddee0055cc7fd39a0247f (patch)
tree34adc03126ff32b55d9b548b02a7410ad8fc68a3
parent41fc00cea5d49e46870db72a5612cbe9f67f8e26 (diff)
downloaddrakx-360cf28714c9ffdf624ddee0055cc7fd39a0247f.tar
drakx-360cf28714c9ffdf624ddee0055cc7fd39a0247f.tar.gz
drakx-360cf28714c9ffdf624ddee0055cc7fd39a0247f.tar.bz2
drakx-360cf28714c9ffdf624ddee0055cc7fd39a0247f.tar.xz
drakx-360cf28714c9ffdf624ddee0055cc7fd39a0247f.zip
add policy for drakautologin
-rw-r--r--perl-install/Makefile.drakxtools2
-rw-r--r--perl-install/standalone/polkit/org.mageia.drakautologin.policy.in22
2 files changed, 23 insertions, 1 deletions
diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools
index 1ef2bf6d1..7f6252aba 100644
--- a/perl-install/Makefile.drakxtools
+++ b/perl-install/Makefile.drakxtools
@@ -44,7 +44,7 @@ install:
mv -f $(SBINDEST)/display_release_notes.pl $(BINDEST)
mv -f $(SBINDEST)/localedrake $(BINDEST)
# All the things handled by polkit
- mv -f $(SBINDEST)/drak{auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST)
+ mv -f $(SBINDEST)/drak{autologin,auth,boot,clock,font,perm,sec,ups,xservices} $(LIBEXECDEST)
mv -f $(SBINDEST)/logdrake $(LIBEXECDEST)/draklog
mv -f $(SBINDEST)/drakedm $(LIBEXECDEST)/drakdm
mv -f $(SBINDEST)/diskdrake $(LIBEXECDEST)/drakdisk
diff --git a/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in b/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in
new file mode 100644
index 000000000..161e456ef
--- /dev/null
+++ b/perl-install/standalone/polkit/org.mageia.drakautologin.policy.in
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
+<policyconfig>
+
+ <vendor>Mageia</vendor>
+ <vendor_url>http://www.mageia.org/</vendor_url>
+
+ <action id="org.mageia.drakautologin.pkexec.run">
+ <_description>Run Mageia AutoLogin Configuration</_description>
+ <_message>Authentication is required to run Mageia AutoLogin Configuration</_message>
+ <icon_name>drakconf</icon_name>
+ <defaults>
+ <allow_any>no</allow_any>
+ <allow_inactive>no</allow_inactive>
+ <allow_active>auth_admin_keep</allow_active>
+ </defaults>
+ <annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/drakautologin</annotate>
+ <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
+ </action>
+</policyconfig>