parent
a5d9620648
commit
16f8cb67d3
@ -0,0 +1,2 @@
|
|||||||
|
# Calculate belong()!=&&pkg(sys-power/upower)!= path=/usr/share/polkit-1 name=actions
|
||||||
|
|
@ -0,0 +1,48 @@
|
|||||||
|
<?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.0/policyconfig.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Policy definitions for ConsoleKit
|
||||||
|
-->
|
||||||
|
|
||||||
|
<policyconfig>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.stop">
|
||||||
|
<description>Stop the system</description>
|
||||||
|
<message>System policy prevents stopping the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>no</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.stop-multiple-users">
|
||||||
|
<description>Stop the system when multiple users are logged in</description>
|
||||||
|
<message>System policy prevents stopping the system when other users are logged in</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>no</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.restart">
|
||||||
|
<description>Restart the system</description>
|
||||||
|
<message>System policy prevents restarting the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>no</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.restart-multiple-users">
|
||||||
|
<description>Restart the system when multiple users are logged in</description>
|
||||||
|
<message>System policy prevents restarting the system when other users are logged in</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>no</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
</policyconfig>
|
@ -0,0 +1,2 @@
|
|||||||
|
# Calculate belong()!=&&pkg(sys-power/upower)!= path=/usr/share/polkit-1 name=actions
|
||||||
|
|
@ -0,0 +1,48 @@
|
|||||||
|
<?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.0/policyconfig.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Policy definitions for ConsoleKit
|
||||||
|
-->
|
||||||
|
|
||||||
|
<policyconfig>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.stop">
|
||||||
|
<description>Stop the system</description>
|
||||||
|
<message>System policy prevents stopping the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>yes</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.stop-multiple-users">
|
||||||
|
<description>Stop the system when multiple users are logged in</description>
|
||||||
|
<message>System policy prevents stopping the system when other users are logged in</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>auth_admin_keep</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.restart">
|
||||||
|
<description>Restart the system</description>
|
||||||
|
<message>System policy prevents restarting the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>yes</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.consolekit.system.restart-multiple-users">
|
||||||
|
<description>Restart the system when multiple users are logged in</description>
|
||||||
|
<message>System policy prevents restarting the system when other users are logged in</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>auth_admin_keep</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
</policyconfig>
|
@ -0,0 +1,2 @@
|
|||||||
|
# Calculate belong()!=&&pkg(sys-power/upower)!= path=/usr/share/polkit-1 name=actions
|
||||||
|
|
@ -0,0 +1,33 @@
|
|||||||
|
<?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.0/policyconfig.dtd">
|
||||||
|
<policyconfig>
|
||||||
|
<vendor>The DeviceKit-power Project</vendor>
|
||||||
|
<vendor_url>http://hal.freedesktop.org/docs/DeviceKit-power/</vendor_url>
|
||||||
|
<icon_name>system-suspend</icon_name>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.upower.suspend">
|
||||||
|
<description>Suspend the system</description>
|
||||||
|
<message>Authentication is required to suspend the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
<allow_active>yes</allow_active>
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action id="org.freedesktop.upower.hibernate">
|
||||||
|
<description>Hibernate the system</description>
|
||||||
|
<message>Authentication is required to hibernate the system</message>
|
||||||
|
<defaults>
|
||||||
|
<allow_inactive>no</allow_inactive>
|
||||||
|
#os_install_root_type==livecd#
|
||||||
|
<allow_active>no</allow_active>
|
||||||
|
#os_install_root_type#
|
||||||
|
#os_install_root_type!=livecd#
|
||||||
|
<allow_active>yes</allow_active>
|
||||||
|
#os_install_root_type#
|
||||||
|
</defaults>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
</policyconfig>
|
Loading…
Reference in new issue